LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-08-2006, 08:34 PM   #1
Peter@KKVS
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


Hi
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
dxqcanada
Member
 
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.
Code:
# 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
Peter@KKVS
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.
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:40 AM.

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