LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   samba sharing with groups (https://www.linuxquestions.org/questions/linux-newbie-8/samba-sharing-with-groups-65847/)

Mr-TY 06-15-2003 10:33 PM

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!

Garak 06-16-2003 01:30 AM

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.

Mr-TY 06-18-2003 02:09 AM

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.