LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-15-2003, 10:33 PM   #1
Mr-TY
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, 01:30 AM   #2
Garak
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:

[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.

Last edited by Garak; 06-16-2003 at 01:33 AM.
 
Old 06-18-2003, 02:09 AM   #3
Mr-TY
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
 
  


Reply



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-19-2009 11:39 PM
howto folder/file sharing with specific groups kmhui Linux - Newbie 5 09-18-2004 07:05 PM
Samba groups TheRealDeal Linux - General 5 09-17-2003 12:13 AM
Samba and WinXP groups? rob_lnb Linux - Networking 1 07-07-2003 04:20 AM
SAMBA....mapping users and groups TheTrexx Linux - Networking 0 01-20-2003 01:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:29 PM.

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