[Samba] how to change perimissions across a directory tree

Felipe Augusto van de Wiel felipe at paranacidade.org.br
Fri Sep 15 19:25:23 GMT 2006


-----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,
> Gianluca

	Kind regards,

- --
Felipe Augusto van de Wiel <felipe at 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-----


More information about the samba mailing list