El 29/06/2013 9:05, Alberto escribió:En ingles en el original http://ubuntuforums.org/showthread.php?t=1838317 (no tengo tiempo ahora de traducir, pero creo que se entiende perfecto) See "man smb.conf". follow symlinks (S) This parameter allows the Samba administrator to stop smbd(8) from following symbolic links in a particular share. Setting this parameter to no prevents any file or directory that is a symbolic link from being followed (the user will get an error). This option is very useful to stop users from adding a symbolic link to /etc/passwd in their home directory for instance. However it will slow filename lookups down slightly. This option is enabled (i.e. smbd will follow symbolic links) by default. THIS DOES WORK AS I DO USE THIS FEATURE. BELOW IS SOME INFO FROM MY CONFIGURATION. MAKE SURE FILE PERMISSIONS ARE NOT CAUSING YOUR PROBLEM. My file share from /etc/samba/smb.conf (Updated after Morbius1's post 10 below.) [global] # Wide links allow Samba to follow symlinks to non-exported file # system areas. Unix extension must be no to use wide links.i unix extensions = no wide links = yes [hp-3500] path = /home/user1 comment = hp-3500 available = yes browseable = yes public = yes writable = yes map archive = no force user = user1 Here is what is in "path = /home/user1" which includes links (->): user1@HP-3500:~$ ls -l /home/user1/ total 12 lrwxrwxrwx 1 user1 user1 11 2011-04-23 21:03 Books -> /data/Books drwxr-xr-x 3 user1 user1 4096 2011-08-31 20:44 Desktop lrwxrwxrwx 1 user1 user1 15 2010-09-11 23:26 Documents -> /data/Documents drwxr-xr-x 2 user1 user1 4096 2011-08-29 20:44 Downloads lrwxrwxrwx 1 user1 user1 11 2010-09-11 23:26 Music -> /data/Music lrwxrwxrwx 1 user1 user1 14 2010-09-11 23:26 Pictures -> /data/Pictures drwxr-xr-x 2 user1 user1 4096 2011-05-10 20:29 Public lrwxrwxrwx 1 user1 user1 15 2010-09-11 23:27 Wallpaper -> /data/Wallpaper This shows the ownership and permission on the linked directory and files: user1@HP-3500:~$ ls -l /data | grep Books drwxr-xr-x 2 user1 user1 4096 2011-06-28 20:52 Books user1@HP-3500:~$ ls -l /data/Wallpaper/ total 6584 -rw-r--r-- 1 user1 user1 262349 2009-05-25 14:06 Atlantic_Ocean_1280x1024.jpg -rw-r--r-- 1 user1 user1 488966 2007-10-29 19:35 cliff_1440x900.jpg It will work! |