[Samba] how to change perimissions across a directory tree

Gianluca Cecchi gianluca.cecchi at gmail.com
Fri Sep 15 12:52:32 GMT 2006


Hello all,
I have samba 3 with a share named shareA using these settings:

[shareA]
   comment = Directory Amministrazione
   path = /col/shareA
   browseable = no
   valid users = @amm
   force group = amm
   public = no
   writable = yes
   create mask = 0770
   directory mask = 0770
   printable = no

where user1, user2, user3 and user4 belong to "amm" group.

I would like to differentiate permissions and have them become something like:

1) these users:
user1
user2

read only to the directory:

\shareA\dir1
\shareA\dir2


2) these users:
user3
user4

read wrtite to the directory:

\shareA\dir1
\shareA\dir2

 3)
user1
user2
user3
user4

read wrtite to the directories
\shareA\dir3
\shareA\dir4

4) full control for user1, user2, user3 and user4 to the other
directories under \shareA (as is now for all what is under \shareA)

Thanks in advance.
Bye,
Gianluca


More information about the samba mailing list