samba sharing with groups
hi all
well my question is how do i setup a samba share that will allow users in one group to access a directory but not allow anyone not in the group to access it. PLZ help it is importaint that i find thi out! |
Here is what I did
I'm no guru with Samba but here is what I did. I added three groups to /etc/groups called 'admin', 'users', and 'visitor'. Then I assigned each Samba user to one of these groups and no other. Then in the smb.conf I added access by group. Here is a sample:
[dropbox] path = /dropbox browseable = yes valid users = @admin @users @visitor write list = @admin @users admin users = @admin guest ok = no The '@' represents a group instead of an individual account. Then you should set permissions and ownership of the directory to reflect your access scheme. This works fine for me on the Linux box shares. What I have not figured out how to do is to extend this to Win2K/WinXP systems (and their shares) which authenticate to the Samba domain. I hope this helps. |
thanks for that i tryed it in my linux class, and it worked, there was one thing that u say
there needs to be groups admin/user, a leader thats the manager of that group |
All times are GMT -5. The time now is 08:51 PM. |