Samba access-restrictions

Michael Hart mixstat at bigpond.net.au
Mon Aug 30 07:30:36 UTC 2004


Roger Grosswiler wrote:
> 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

Have you tried giving everyone write access?

Change the create mask

    create mask = 777





More information about the fedora-list mailing list