On 08/22/2011 10:33 AM, James Knott wrote:
I've recently set up a server running openSUSE 11.4. I have set up some common file areas in the /srv partition, which I link to from user directories. If I use WinSCP to access the user accounts, I can follow the symlinks to /srv. However, if I use Samba, I get an error that files on /srv are not accessible and it might be due to permissions. I have tried the "follow symlinks" and "wide links" options in smb.conf, but still no luck. Any ideas?
tnx jk
James, Sounds like you might have a permission issue. I take it you did the following: common storage: /srv/some/dir then linked: ln -s /srv/some/dir /home/user/udir so the user accesses the file at /srv/some/dir through the link in in /home/user/udir by way of their default [homes] share. Samba does a good job with permission implementation. Two thoughts come to mind: (1) what does your smb.conf home share definition look like? [homes] comment = Home Directories browseable = no writable = yes should be fine... (2) what are the directory permissions on /srv/some/dir? All 'dir' permissions for /srv/some/dir must at least be world r+x (yes 'x', i.e. 0755) -- or -- must be group r+x (0750) if user is a member of the group owning /srv/some/dir. This means that '/srv', '/srv/some' and '/srv/some/dir' must all be at least r+x in the octet that provides user read permission (either world, group, or user). If the dir is just 'r', then samba will not allow browse or descent into the dir. Must be 'r+x'. 'x' controls descent into dirs (or at least it used to :) HTH -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org