Operating System - HP-UX
1833159 Members
3018 Online
110051 Solutions
New Discussion

Samba and directory umask

 
SOLVED
Go to solution
Coolmar
Esteemed Contributor

Samba and directory umask

Hi,

When "folders" are created on our unix system from windows via Samba...they are supposed to be created with rwxrwxr-x . I have setup the create mask and when a file is created it is fine...just directories are not being created properly. Any ideas:

smb.conf (share info)

[PROJ]
comment = Technical Service Cadd Files
path = /cadd
public = Yes
read only = Yes
force group = dft
write list = cadd
create mask = 0775
force create mode = 0775
security mask = 0775

3 REPLIES 3
John Kittel
Trusted Contributor
Solution

Re: Samba and directory umask

see the parameters: force directory mode and directory mask.

- John
Orhan Biyiklioglu
Respected Contributor

Re: Samba and directory umask

specify the directory create mask separetly

directory mask = 0775

hth
Ivan Ferreira
Honored Contributor

Re: Samba and directory umask

Another thing that you should consider is the creator owner and the group owner.

See also:

inherit owner
inherit permissions
force user
And SGID for directories (chmod)
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?