LinuxQuestions.org
Help answer threads with 0 replies.
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 12-09-2004, 08:13 PM   #1
tinman77
LQ Newbie
 
Registered: Dec 2004
Posts: 10

Rep: Reputation: 0
User and Group Management


I was wondering if it is possible to make group1 a member of group2 ? OR make permissions such that a group is in the owner field and another group is in the group field ? I've tried modifying /etc/fstab and /etc/group a bit with no luck.
 
Old 12-09-2004, 08:44 PM   #2
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 46
Yes, groups can be members of other groups. No, a user is owner.
 
Old 12-09-2004, 11:16 PM   #3
tinman77
LQ Newbie
 
Registered: Dec 2004
Posts: 10

Original Poster
Rep: Reputation: 0
how would one add a group to another group? my trials haven't worked as of yet. thanks for helping.
 
Old 12-09-2004, 11:41 PM   #4
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 46
Hmm ... Looks like I spoke too soon. After reading the man page for group, it seems that group members can only be users (and I ran through a quick test to confirm that).

I could have sworn I did that at one point ...

At any rate, you just append the usernames to the line, separated by commas.
 
Old 12-10-2004, 01:07 PM   #5
tinman77
LQ Newbie
 
Registered: Dec 2004
Posts: 10

Original Poster
Rep: Reputation: 0
ok, a big "NO" for adding groups to other groups...an alternative...can i set permissions such that a group owns a file and another group has limited access:

drwxrw--- group1 group2

Is this at all possible?

Last edited by tinman77; 12-10-2004 at 01:19 PM.
 
Old 12-10-2004, 01:46 PM   #6
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 46
Not with standard owner/group/all type permissions. You may be able to do it with file ACLs though.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to list user in Linux box, add an user to a group! steady_lfcfan Linux - Newbie 12 01-27-2013 02:14 PM
User and Group Admin: How to tell Who is in What group? Akhran Linux - Newbie 1 11-13-2005 12:16 AM
group management BoldKiller Linux - General 1 05-28-2003 06:35 PM
User/Group Management sancho5 Linux - General 3 09-21-2001 08:22 PM
User/Group Management sancho5 Linux - General 3 08-23-2001 07:48 PM


All times are GMT -5. The time now is 01:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration