The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
max size of a group in /etc/group antalexi AIX 4 05-11-2008 06:01 AM
Monkcast #12: IBM HW group OEMs Solaris to chagrin of SW group & a ... - ZDNet.com bl iBot UNIX and Linux RSS News 0 08-17-2007 01:30 PM
entry in /etc/group too long - problem using sudo with %group poli SUN Solaris 4 12-21-2004 05:50 AM
Group changes Liamo UNIX for Advanced & Expert Users 2 05-28-2004 05:55 AM
NIS group vs local group vjsony UNIX for Dummies Questions & Answers 3 05-19-2003 06:54 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-27-2007
Registered User
 

Join Date: Mar 2007
Posts: 2
Unhappy Add group

Hi All,

How can I add few existing groups into a group?

eg. Currently, I have
- projgrp1 for proj1 with members proj1usr1, proj1usr2, proj1usr3..proj1usr10
- projgrp2 for proj2 with members proj2usr1, proj2usr2
- projgrp3 for proj3 wiht members proj3usr1, proj3usr3

Now, I would like to give access for all users in projgrp1 and projgrp2 to folderA.

I am thinking of adding projgrp1 and projgrp2 to a mainprojgrp and set folderA's group permission to the mainprojgrp. But I don't know how to do this.
Or is there any alternative way? Please advise.

Thanks & Regards,
tifmils
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 03-28-2007
Registered User
 

Join Date: Feb 2005
Location: Broomfield, CO
Posts: 374
I'm pretty sure you can't have groups be members of a group. You'd have to create the mainprjgrp and make sure the members of the two sub groups are also members of the main group. Then assign perms to the main group.

What OS are you on? There may be specific OS based things that can be done. In other words, I don't know every UNIX. If you're on SCO and it lets you have groups be members of a group then someone who's smart on SCO could provide a better answer.

Carl
Reply With Quote
  #3 (permalink)  
Old 03-28-2007
Registered User
 

Join Date: Mar 2007
Posts: 2
Hi Carl, Thanks for your suggestion. I'm using Solaris 9.

Actually, I have more than 20 of subgroup for different projects and about 6 - 10 users in each subgroup. 5 subgroups will be excluded from accessing the folder. Still, I need to add many users to main group. I'm trying to avoid this. Also, more project will come in near future.

Is there any other way to block some groups from accessing the folder? I know there is a command 'setfacl', but this only control the access on file.

-> tifmils
Reply With Quote
  #4 (permalink)  
Old 10-11-2007
Registered User
 

Join Date: Oct 2007
Posts: 5
The only way I know is in NIS (yp) system .
there is an option to define netgroup

sam
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:06 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0