hello all, im trying to figure out the precedence of security parameters in smb.conf. i know that settings in specific shares take precedence over settings in global; 'invalid users' takes precidence over all other security settings. but others im not so clear on, such as: does 'read only' take precedence over 'write list'? or do later entries simply overwrite earlier ones? for instance, will the following allow user2 to write to [share]? [share] read only = yes valid users = user1 user2 read list = user1 write list = user2 thanks in advance for any info...
i think you should read man smb.conf which will definitely give you the answer. greez Alan Gibson wrote:> hello all, > > im trying to figure out the precedence of security parameters in > smb.conf. i know that settings in specific shares take precedence over > settings in global; 'invalid users' takes precidence over all other > security settings. but others im not so clear on, such as: does 'read > only' take precedence over 'write list'? or do later entries simply > overwrite earlier ones? > > for instance, will the following allow user2 to write to [share]? > > [share] > read only = yes > valid users = user1 user2 > read list = user1 > write list = user2 > > thanks in advance for any info...-- Michael Gasch Max Planck Institute for Evolutionary Anthropology Department of Human Evolution (IT Staff) Deutscher Platz 6 D-04103 Leipzig Germany Phone: 49 (0)341 - 3550 137 49 (0)341 - 3550 374 Fax: 49 (0)341 - 3550 399
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Alan Gibson wrote:> for instance, will the following allow user2 to write to [share]? > > [share] > read only = yes > valid users = user1 user2 > read list = user1 > write list = user2 > > thanks in advance for any info...Yes. user2 will have write access. Think of 'read list' and 'write list' as exceptions to the value of read only. In your example, the 'read list' parameter is unnecessary since everyone not in the 'write list' will get 'read only = yes' cheers, jerry ====================================================================Samba ------- http://www.samba.org Centeris ----------- http://www.centeris.com "What man is a man who does not make the world better?" --Balian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFErkinIR7qMdg1EfYRAhfQAJ0d3lghDAZOn5Je13S7j7P/vsZQwgCgkwNb c39VJodX9IsvuugtQLkQnVM=vwId -----END PGP SIGNATURE-----