David C. Rankin wrote:
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
Here's what it is: [homes] comment = Home Directories valid users = %S, %D%w%S browseable = No read only = No inherit acls = 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
jknott@acserver:~> ls -l /srv total 4506668 drwxrwxr-x 3 root users 4096 Aug 19 15:34 Common drwxrwx--- 2 root financial 4096 Aug 18 08:51 Financial drwxr-xr-x 4 root root 4096 Aug 12 13:24 ftp drwx------ 2 root root 16384 Aug 11 17:18 lost+found -rw-r--r-- 1 root users 4614782976 Aug 11 19:14 openSUSE-11.4-DVD-x86_64.iso drwxrwxr-x 2 root users 4096 Aug 18 08:51 Projects drwxr-x--- 4 root tftp 4096 Aug 12 13:24 tftpboot drwxr-xr-x 6 root root 4096 Aug 11 17:54 www And /srv is drwxr-xr-x -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org