Samba. Symlinks in the folder for the guest is not visible?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
30 views
Has NAS on it with Samba access via login password.

Trying to add a guest, and share the folder to /home/0common/Guest

In this folder you made a symlink:
#ls-la
lrwxrwxrwx 1 root users 38 Jan 11 19:19 Video -> /home/deez/MyComputers/Downloads/Done/



Prilinkovan folder is in home folder of another user:
# ls-la /home/deez/MyComputers/Downloads/
drwxrwxr-- 24 deez www 4096 Oct 12 2011 Done



If I go do a link to the Video folder if you do not see.

That is strange, if you go under the user in whose home folder also has a link to this folder — everything is fine, but under guest no-shows.


Config Samba:
[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 = Bad Password

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


What's the problem? why the guest does not see the symlinks?


PS:
# id Guest
uid=504(Guest) gid=506(Guest) groups=506(Guest),100(users)
#smbd -V
Version 3.0.28-0.el5.8.oe5
by | 30 views

4 Answers

0 like 0 dislike
you can use mount --bind
by
0 like 0 dislike
try
follow symlinks = yes
by
0 like 0 dislike
Maybe the fact that the reference to region within the directory tree([MyComputers]) and the Guest user has no access to \\\\deez\\MyComputers\\Downloads\\Done\\... try to fix in the section "guest ok" " yes " (temporarily, for testing)
You can also move /home/deez/MyComputers/Downloads/Done/ to /home/0common/Guest and make a link in /home/deez/MyComputers/(i.e. swap)... or make a folder outside of the directory tree, and Samba to make the two links.
by
0 like 0 dislike
Symlinks in Samba was banned relatively recent (six months or a year) fix. I don't remember what's going on, but found some sort of vulnerability that allows you to climb through symlinks in the wrong place, and because they are covered. You can enable the special option at your own risk. (For more details better in Google, as I myself am not much of a topic.)
by
110,608 questions
257,186 answers
0 comments
27,966 users