[Samba] Share level security and passwords

Gerald Carter jerry at samba.org
Mon Feb 25 07:47:05 GMT 2002


On Tue, 19 Feb 2002, Jens Zahner wrote:

> Hello, I'm running samba in "security = share" mode and I have a
> problem: How can I apply a password for a share, like under windoze. A
> password for read access and another password for read and write access.

[global]
	security = share


[share]
	username = user1,user2
	force user = user2
	read list = user1
	write list = user2



should just about do it.  Now just give out the password for 
user1 and user2 depending upon access requirements.  Note that you will 
also have to play with file permissions.  I'll leave that as an exercise 
for the reader.






jerry
 ---------------------------------------------------------------------
 Hewlett-Packard                                     http://www.hp.com
 SAMBA Team                                       http://www.samba.org
 --                                            http://www.plainjoe.org
 "Sam's Teach Yourself Samba in 24 Hours" 2ed.      ISBN 0-672-32269-2
 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--





More information about the samba mailing list