[Samba] File permissions and Unix umask.

Jeremy Allison jra at samba.org
Wed Oct 8 18:48:25 GMT 2008


On Thu, Oct 09, 2008 at 12:58:41AM +1100, Gerry Marthe wrote:
> 
> The relevant section from smb.conf on the samba server is:
> 
> [common]
>         comment = Common Area
>         path = /common
>         read only = no
>         valid users = @users
>         create mask = 0660
>         force create mode = 0660
>         force directory mode = 775
>         write list = @users
>         force group = users
>         directory mask = 0775
> 
> The share is mounted on a Linux system with the following command:
> 
> mount.cifs //localhost/common /mnt/smb -o
> rw,uid=600,gid=504,user=abdv29,password=*******
> 
> >From what I have understood of the samba documentation, the various file
> creation masks specified
> by Samba do not override a client umask.

You understood wrong. The server setting override all client
requests. That's why they're *force* create mode.

Jeremy.


More information about the samba mailing list