[Samba] Problem with listing contents of directory of symlinks - not all files shown
John Bergqvist
johnlbergqvist at gmail.com
Tue Apr 6 15:08:09 UTC 2021
My full config is this:
mythtv /hd1/TV Recordings/Subdir $ cat /etc/samba/smb.conf
[global]
workgroup = WORKGROUP
server string = Samba Server
netbios name = SERVER
server role = standalone server
log file = /var/log/samba/%m.log
max log size = 50
domain master = yes
dns proxy = no
allow insecure wide links = yes
create mask = 0644
directory mask = 0755
follow symlinks = yes
wide links = yes
unix extensions = no
#=======DISABLE PRINTING=======#
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
show add printer wizard = no
#============================ Share Definitions
==============================
[MythTV Recordings]
path = "/hd1/TV Recordings"
comment = "MythTV Recordings"
read only = yes
And this is what I did to reproduce the situation. /home/mythtv/ is outside
of any existing shares
mythtv /hd1/TV Recordings/Subdir $ rm file*
mythtv /hd1/TV Recordings/Subdir $ ln -s /home/mythtv/file.ts file0.ts
mythtv /hd1/TV Recordings/Subdir $ ln -s /home/mythtv/file.ts file1.ts
mythtv /hd1/TV Recordings/Subdir $ ln -s /home/mythtv/file.ts file2.ts
mythtv /hd1/TV Recordings/Subdir $ rm file0.ts
mythtv /hd1/TV Recordings/Subdir $ ln -s /home/mythtv/file.ts file0.ts
mythtv /hd1/TV Recordings/Subdir $ smbclient -U mythtv "//localhost/MythTV
Recordings" -c "ls Subdir/*"
Enter WORKGROUP\mythtv's password:
. D 0 Tue Apr 6 13:54:12 2021
.. D 0 Tue Apr 6 13:47:42 2021
file2.ts N 0 Tue Apr 6 13:47:21 2021
file0.ts N 0 Tue Apr 6 13:47:21 2021
mythtv /hd1/TV Recordings/Subdir $ ls -l --full-time .
total 0
lrwxrwxrwx 1 mythtv users 20 2021-04-06 13:54:12.774528130 +0100 file0.ts
-> /home/mythtv/file.ts
lrwxrwxrwx 1 mythtv users 20 2021-04-06 13:53:53.638021600 +0100 file1.ts
-> /home/mythtv/file.ts
lrwxrwxrwx 1 mythtv users 20 2021-04-06 13:54:00.784628464 +0100 file2.ts
-> /home/mythtv/file.ts
More information about the samba
mailing list