Gianluca Cecchi
2006-Sep-15 12:52 UTC
[Samba] how to change perimissions across a directory tree
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
Felipe Augusto van de Wiel
2006-Sep-15 19:25 UTC
[Samba] how to change perimissions across a directory tree
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 09/15/2006 09:52 AM, Gianluca Cecchi escreveu:> 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)You should look for ACLs. You can use it in your filesystem to achieve what you want. The Samba documentation covers it. (BTW, I'm talking about POSIX ACL). :-)> Thanks in advance. > Bye, > GianlucaKind regards, - -- Felipe Augusto van de Wiel <felipe@paranacidade.org.br> Coordenadoria de Tecnologia da Informa??o (CTI) - SEDU/PARANACIDADE http://www.paranacidade.org.br/ Phone: (+55 41 3350 3300) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Debian - http://enigmail.mozdev.org iD8DBQFFCv4jCj65ZxU4gPQRApbmAJ9l/uUJsDX7uWimjRuSEcEM9uSHXgCfTBML VbBxT++AwWw71cY9ApYJHwU=F53G -----END PGP SIGNATURE-----