I am trying out samba configuration and access rights.
I have user account X and this user wants to share publicly (readonly) directory /Y/Z, that belongs to him, and has access rights drwx------. My current samba configuration for this share is
As far as I understand samba configuration, this should map any access to this share to guest user, in this case user X, and therefore grant read access (because user X has read acces to this dir). However on attempt to mount i get
comment = X directory
path = /Y/Z
guest ok = yes
guest only = yes
guest account = X
read only = yes
If change access rights to /Y/Z directory to a bit less restrictive, (drwx--x--x) mount succedes but listing mounted dir causes Access Denied error. After going to (drwxr-xr-x), it works well, which suggests that another account is being used. Changing read only to no, mounting and touching a file shows that nobody user is being used inspite of guest account command. Does anybody know why is this happening?
root@MACHINA:/mnt# smbmount -o guest //localhost/X /mnt/test/
Warning: mapping 'guest' to 'guest,sec=none'
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Server has set
map to guest = bad user
, although I doubt this last one has any meaning, as all shares are configured in smb.conf, so they are not usershares. I am using smbd 3.5.8 on kubuntu 11.04.
usershare allow guests = yes