LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-07-2008, 06:21 AM   #1
logonuser
LQ Newbie
 
Registered: Sep 2008
Posts: 3

Rep: Reputation: 0
Samba Users and groups with different access?


Hello,
I'm trying to make a NAS for my friends but I can't get it to work the way I want and hope you could help me out.

I have samba working and no problem there but all users get the same permission to the server and I want to have two different groups of access.

I want all users to have there own home folder(/mnt/hdd/home/) with full access, and a restricted to 20 GB each(the restriction not to important).
The group friends have read access to the folder /mnt/hdd/friends/ and write access to /mnt/hdd/upload/.
The group workgroup have full access to /mnt/hdd/work/.
And last the group/user root that have full access to everything in /mnt/hdd/.
 
Old 09-07-2008, 06:33 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Have a look at the smb.conf parameter valid users (it does group work as well) in combination with standard *nix permissioning on the underling directories
 
Old 09-07-2008, 07:38 AM   #3
logonuser
LQ Newbie
 
Registered: Sep 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks, think I'm on the way to get it working.
But I'm not sure how I should set up the *nix permissions for this to work. =/

Think the smb.conf file will be something like this. (Haven't tested it yet.)
Code:
[friends]
comment = friends share
path = /mnt/hdd/friends
hide do files = yes
guest ok = no
browsable = yes
read only = yes
valid users = @friends
host allow = 192.168.1.0/24
hosts deny = ALL

[upload]
comment = friends upload
path = /mnt/hdd/upload
hide do files = yes
guest ok = no
browsable = no
writable = yes
valid users = @friends
host allow = 192.168.1.0/24
hosts deny = ALL

[work]
comment = Workgroup
path = /mnt/hdd/work
hide do files = yes
guest ok = no
browsable = yes
writable = yes
valid users = @work
host allow = 192.168.1.0/24
hosts deny = ALL

[root]
comment = root
path = /mnt/hdd/
hide do files = no
guest ok = no
browsable = yes
writable = yes
valid users = smbroot
host allow = 192.168.1.2
hosts deny = ALL
 
  


Reply

Tags
groups, samba



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
SAMBA + ADS + users and groups problems teixeira Linux - Server 1 09-03-2008 12:48 PM
Samba PDC + ACL - howto map users and groups on windows clients myers Linux - Networking 0 09-04-2006 03:50 PM
Samba Users & Groups Privileges Bilal84 Linux - Networking 3 10-11-2005 08:31 AM
SAMBA access based on NT Domain groups [using winbind] tisource Linux - Networking 1 11-24-2003 12:34 AM
SAMBA....mapping users and groups TheTrexx Linux - Networking 0 01-20-2003 01:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:37 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