Results 1 to 2 of 2
Hi everybody,
recently I created a PDC with Samba for my LAN, and after all seems to work I found a little problem I would like to solve.
I have ...
- 12-02-2009 #1Just Joined!
- Join Date
- Jul 2006
- Posts
- 51
[SOLVED] Samba - directory umask and personal umask
Hi everybody,
recently I created a PDC with Samba for my LAN, and after all seems to work I found a little problem I would like to solve.
I have a shared directory called dir1, and I would like that when domain users create files and directories into the shared directory, they had 775 permissions. So, here is the code:
The problem is that when a user create a directory or a file into this shared directory, they are created with the USER mask (755) and NOT with Samba shared directory mask (775).Code:[dir1] comment = temp path = /home/shared/dir1 read only = no browaseable = yes create mask = 0775 directiry mask = 0775
So the question is: how can I give "preference" to Samba shared directoy mask??
- 12-02-2009 #2Just Joined!
- Join Date
- Jul 2006
- Posts
- 51
Obviosuly I didn't find these parameters that do exactly what I want:
I was confused because in many places, the description of create mask and directory mask are confused, so here is my description:Code:force create mode = 0775 force directory mode = 0775
directory mask: makes these mask as the "max permissions" about the created directories.
create mask: makes these mask as the "max permissions" about the created files.
So, if the mask of a user is set to 700, the files and directories created there will be 700.
But, if the mask of the user is set to 777, the files and directories created there will be 775.
See you!


