Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-08-2006, 08:34 PM   #1
LQ Newbie
Registered: Aug 2006
Posts: 7

Rep: Reputation: 0
How to give access rights to one group to the home-dirs of another group

I'm using samba 3 on Ubuntu as stand alone server for network of xp machines.

I need to give teachers the rights to access the pupils home_dirs without giving students the ability to acess other students or teachers resources.
Teachers are in a group called "staff"
pupils are presently just in the default users group.

Pupils have their home-dirs in directories according to class eg /home/students/primary6/richard

I find if I use group permissions to give the staff access then the students cannot open their own home-dir. If I set permissions so that students can access their home dirs then teachers cannot access them.

I know it can be done - but how ????
Old 11-08-2006, 08:53 PM   #2
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
The home directory and subdirectories are owned by the user.
The group ownership is probably their own group.

If you change the group ownership to "staff" ... then all members of that group can access the directories and files.
# chgrp -R staff /home/xxxx
So the user will have access to their files because they are the owners ... the members of staff will have access based on their group permissions.

If you have problems with group permissions then look into the umask command, which you can set in the User's profile.
Old 11-09-2006, 12:38 AM   #3
LQ Newbie
Registered: Aug 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks, I tried that but users could not then access their own user dir as they are members of users group.
I got around it (probably not an ideal way) by adding
admin users = @staff in smb.conf for the student directory.


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
Permissions problem - setting up dirs for root + group access ericcarlson Red Hat 1 03-26-2006 03:03 AM
Group Access Rights and Panel Buttons mayank_a Linux - General 1 02-11-2006 09:51 AM
no access to devices with group access rights flipper333 Debian 2 12-28-2004 09:25 AM
give users access to home dirs jonas73 Linux - Newbie 2 03-16-2004 01:42 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:04 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration