Есть NAS, на нем самба с доступом по логину паролю.
Пытаюсь добавить гостя. и расшарить для него папку /home/0common/Guest
В которую сделан симлинк:
#ls -la
lrwxrwxrwx 1 root users 38 Jan 11 19:19 Video -> /home/deez/MyComputers/Downloads/Done/
Прилинкованая папка:
# ls -la /home/deez/MyComputers/Downloads/
drwxrwxr-- 24 deez www 4096 Oct 12 2011 Done
# id Guest
uid=504(Guest) gid=506(Guest) groups=506(Guest),100(users)
Если захожу гостем то папку Video не вижу.
Что странно если зайти под юзером у котого в домашней папке тоже есть симлинк на эту папку - все нормально, а под гостем не показывает.
Конфиг самбы:
[global]
netbios name = STORA
workgroup = WORKGROUP
server string = Stora
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
use sendfile = yes
guest account = Guest
printcap name = cups
load printers = yes
printing = cups
socket options = TCP_NODELAY SO_RCVBUF=65536 SO_SNDBUF=65536
dns proxy = no
browseable = yes
map to guest = never
domain master = no
local master = yes
preferred master = yes
os level = 2
unix charset = UTF8
mangled names = no
use client driver = yes
follow symlinks = yes
[MyComputers]
comment = Stora (MyComputers)
browseable = yes
writable = yes
valid users = %U
create mode = 0664
directory mode = 0775
force create mode = 0664
force directory mode = 0775
force security mode = 0775
force directory security mode = 0775
force group = www
path = /home/%U/MyComputers
guest ok = no
[printers]
comment = All Printers
path = /var/spool/samba
browseable = yes
guest ok = yes
guest only = no
writable = yes
printable = yes
public = yes
[Guest]
comment = Stora (Guest Share)
path=/home/0common/Guest
browseable = yes
writeable = yes
public = yes
readonly = no
guest ok = yes
#wide links = yes
create mode = 0664
directory mode = 0775
force create mode = 0664
force directory mode = 0775
force security mode = 0775
force directory security mode = 0775