Samba access-restrictions

Roger Grosswiler roger at gwch.net
Mon Aug 30 06:28:57 UTC 2004


Hi,

i have a samba-server running with several users and each of them has its own directory on the server. also, i did
some public-accessible directories. All user-directories work fine, but not the public-accessibles, which restricts
write-access.

what i've done.

- generating the users in /etc/passwd and merging them in group samba
- adding those users in /etc/samba/smbpasswd
- adding the sections in /etc/samba/smb.conf:

[homes]
   comment = Home Directories
   path = /users/%U
   guest ok = no
   browseable = yes
   writable = yes
   create mask = 775

[public]
   path = /public
   public = yes
   writable = yes
   create mask = 775

- mounting the shares with a shell-script after a successful samba-login:
sudo mount -t cifs -o credentials=/$HOME/.smb,rw,uid=$UID,gid=samba //server/$USER /home/$USER/winhome
sudo mount -t cifs -o credentials=/$HOME/.smb,rw,uid=$UID,gid=samba //server/public /home/$USER/winpublic

...so why, why, can't i write in my public folders???

ah yes...rights...
 2 drwxrwxr-x   8 samba samba   4096 30. Jul 08:36 public


i just thougth, it should be enough, running the appropriate passwd-rights on the shares??

Thanks for your help!
Roger






More information about the fedora-list mailing list