Answer the question
In order to leave comments, you need to log in
samba. Symlinks in the guest folder are not visible?
There is a NAS with samba on it with login password access.
I'm trying to add a guest and share the /home/0common/Guest folder for him.
A symlink is made to this folder:
#ls -la<br/>
lrwxrwxrwx 1 root users 38 Jan 11 19:19 Video -> /home/deez/MyComputers/Downloads/Done/
# ls -la /home/deez/MyComputers/Downloads/<br/>
drwxrwxr-- 24 deez www 4096 Oct 12 2011 Done
[global]<br/>
<br/>
netbios name = STORA<br/>
workgroup = WORKGROUP<br/>
server string = Stora<br/>
<br/>
security = user<br/>
encrypt passwords = yes<br/>
smb passwd file = /etc/samba/smbpasswd<br/>
use sendfile = yes<br/>
<br/>
guest account = Guest<br/>
<br/>
printcap name = cups <br/>
load printers = yes<br/>
printing = cups <br/>
<br/>
socket options = TCP_NODELAY SO_RCVBUF=65536 SO_SNDBUF=65536<br/>
dns proxy = no <br/>
<br/>
browseable = yes<br/>
map to guest = Bad Password<br/>
<br/>
domain master = no<br/>
local master = yes<br/>
preferred master = yes<br/>
os level = 2<br/>
unix charset = UTF8<br/>
mangled names = no<br/>
<br/>
use client driver = yes<br/>
<br/>
follow symlinks = yes<br/>
<br/>
[MyComputers]<br/>
comment = Stora (MyComputers)<br/>
browseable = yes<br/>
writable = yes<br/>
valid users = %U<br/>
create mode = 0664<br/>
directory mode = 0775<br/>
force create mode = 0664<br/>
force directory mode = 0775<br/>
force security mode = 0775<br/>
force directory security mode = 0775<br/>
force group = www<br/>
path = /home/%U/MyComputers<br/>
guest ok = no<br/>
<br/>
[printers]<br/>
comment = All Printers<br/>
path = /var/spool/samba<br/>
browseable = yes<br/>
guest ok = yes<br/>
guest only = no <br/>
writable = yes<br/>
printable = yes<br/>
public = yes<br/>
<br/>
[Guest]<br/>
comment = Stora (Guest Share)<br/>
path=/home/0common/Guest<br/>
browseable = yes<br/>
writeable = yes<br/>
public = yes<br/>
readonly = no<br/>
guest ok = yes<br/>
#wide links = yes<br/>
create mode = 0664<br/>
directory mode = 0775<br/>
force create mode = 0664<br/>
force directory mode = 0775<br/>
force security mode = 0775<br/>
force directory security mode = 0775
# id Guest<br/>
uid=504(Guest) gid=506(Guest) groups=506(Guest),100(users)<br/>
#smbd -V<br/>
Version 3.0.28-0.el5.8.oe5<br/>
Answer the question
In order to leave comments, you need to log in
Maybe the point is that the link to the areas within the directory tree([MyComputers]) and the Guest user does not have access to \\deez\MyComputers\Downloads\Done\… try to change the "guest ok" section to yes(temporarily, for testing)
You can also move /home/deez/MyComputers/Downloads/Done/ to /home/0common/Guest and make a link to /home/deez/MyComputers/ (i.e. swap) ... or move the folder outside the directory tree Samba and make two links.
Symlinks in samba were banned by a relatively recent (half a year to a year) fix. I don’t remember what the matter was, but they found some kind of vulnerability that allowed them to climb through symlinks somewhere in the wrong place, and therefore they were covered. You can turn on the special option at your own peril and risk. (Google is better for details, because I myself am not very knowledgeable.)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question