Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-15-2003, 11:33 PM   #1
LQ Newbie
Registered: Jun 2003
Location: Australia
Distribution: RedHat
Posts: 4

Rep: Reputation: 0
Question 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!
Old 06-16-2003, 02:30 AM   #2
LQ Newbie
Registered: Feb 2003
Location: Seattle, WA
Posts: 16

Rep: Reputation: 1
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:

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.

Last edited by Garak; 06-16-2003 at 02:33 AM.
Old 06-18-2003, 03:09 AM   #3
LQ Newbie
Registered: Jun 2003
Location: Australia
Distribution: RedHat
Posts: 4

Original Poster
Rep: Reputation: 0
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple groups sharing directory access OnlyNewb Linux - General 2 11-20-2009 12:39 AM
howto folder/file sharing with specific groups kmhui Linux - Newbie 5 09-18-2004 08:05 PM
Samba groups TheRealDeal Linux - General 5 09-17-2003 01:13 AM
Samba and WinXP groups? rob_lnb Linux - Networking 1 07-07-2003 05:20 AM
SAMBA....mapping users and groups TheTrexx Linux - Networking 0 01-20-2003 02:10 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:16 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration