LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 06-16-2006, 03:09 PM   #1
grondar69
LQ Newbie
 
Registered: Apr 2005
Posts: 12

Rep: Reputation: 0
Question granting permissions to a few users in a group


Hi all,

Is there any way to set permissions so that only 2 users of a group have full control of a directory and the rest of the group have none?

Thanks in advance
 
Old 06-16-2006, 04:24 PM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Hi.

Nope. You'll have to create another group with those two users as members.

Dave
 
Old 06-16-2006, 05:20 PM   #3
grondar69
LQ Newbie
 
Registered: Apr 2005
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks, I've got that working. Now my problem is that the permissions on the directory aren't carrying though to the files. I did a chmod 6770 on the directory and I want that to carry through to any files that either user in the group creates/modifies.
 
Old 06-17-2006, 02:21 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
chmod -R <perms> <dir> should do the trick.


Cheers,
Tink
 
Old 06-17-2006, 10:37 AM   #5
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 70
Quote:
Originally Posted by grondar69
Hi all,

Is there any way to set permissions so that only 2 users of a group have full control of a directory and the rest of the group have none?

Thanks in advance
You either have to use something like ACLs or give those two users secondary groups.
 
Old 06-20-2006, 10:36 AM   #6
grondar69
LQ Newbie
 
Registered: Apr 2005
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Tinkster
chmod -R <perms> <dir> should do the trick.


Cheers,
Tink
thanks, that worked fine for changing the files currently in the directory, but any new files created after that don't have the same permissions.
 
Old 06-20-2006, 10:49 AM   #7
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
you can use umask for setting future permissions
 
Old 06-22-2006, 06:51 PM   #8
grondar69
LQ Newbie
 
Registered: Apr 2005
Posts: 12

Original Poster
Rep: Reputation: 0
Thumbs up

Quote:
Originally Posted by osor
You either have to use something like ACLs or give those two users secondary groups.
The ACL method did exactly what I wanted, I was able to set permissions for specific users in a group without creating a secondary group for each user. Thanks for all the help.

Last edited by grondar69; 06-22-2006 at 06:53 PM.
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
/etc/group - the group users empty Artanicus Linux - General 2 02-22-2005 04:25 AM
regarding group permissions zameer_india Linux - Networking 1 02-11-2005 04:07 AM
Granting users full internet access!? adham1sa Linux - Networking 3 12-22-2004 06:08 AM
group permissions mikeghet Linux - Newbie 1 12-06-2004 03:49 AM
Group Permissions (m9.2) PaladinCowboy75 Mandriva 4 05-06-2004 08:20 AM


All times are GMT -5. The time now is 08:48 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration