Add group

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Add group
# 1  
Old 03-28-2007
Data 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,
# 2  
Old 03-28-2007
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.

# 3  
Old 03-28-2007
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
# 4  
Old 10-11-2007
The only way I know is in NIS (yp) system .
there is an option to define netgroup

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to add using awk command for a group?

hi all below is the input file contains a code followed by amount input file 345,5.86 346,20.58 399,10.00 400,12.00 i need the output in the following way outputfile totalsumof345and346,26.44 totalsumof399and400,22.00 (10 Replies)
Discussion started by: hemanthsaikumar
10 Replies

2. Shell Programming and Scripting

Add a Group ID to each row

I have a sample data like this: user1 1001 role1 user2 1002 role1 role2 user3 1003 role1 role2 role3 And I need to convert it like this: 1,user1 (5 Replies)
Discussion started by: vskr72
5 Replies

3. Solaris

Unable to add new group in Solaris

I have installed Solaris 10 in VMware. Whenever I am trying to add new group using the command '/usr/sbin/groupadd/oinstall' while logged in as root , it is showing as '/usr/sbin/groupadd/oinstall can not execute'. It will be great to hear any inputs/advice here. (4 Replies)
Discussion started by: sandip250382
4 Replies

4. Solaris

Unable to add disk to VG group.

Hi, I am new to solaris administration. I have scan the new EMC SAN disk. I am able to see the disk when i run the powermt display dev=all command o/p. I want to format the disk and add file system to that disk. Can have formated the disk. and this the o/p of my format bash-3.00# prtvtoc... (3 Replies)
Discussion started by: jpkumar10
3 Replies

5. AIX

How to create new user and add group

Hello, I am new in AIX please tell how can i create user and add group in this user for example, i want to create user umair and want to add this user primanry group DBA and secondary group ORACLE,how can i do this please tell in detail Thanks, Umair (1 Reply)
Discussion started by: umair
1 Replies

6. Shell Programming and Scripting

Merge group numbers and add a column containing group names

Hi All I do have a file like this with 6 columns. Groups of data merge together and the group number is indicated above each group. 1 1 12 26 289 3.2e-027 GCGTATGGCGGC 2 12 26 215 6.7e+006 TTCCACCTTTTG 3 9 26 175 ... (1 Reply)
Discussion started by: Lucky Ali
1 Replies

7. Shell Programming and Scripting

Merge group numbers and add a column containing group names

I have a file in the following format. Groups of data merge together and the group number is indicated above each group. 1 adrf dfgr dfg 2 dfgr dfgr 3 dfef dfr fd 4 fgrt fgr fgg 5 fgrt fgr (3 Replies)
Discussion started by: Lucky Ali
3 Replies

8. UNIX for Dummies Questions & Answers

how can i add a user to a group

All, How i can add a user to a group so that the user will ahve all permsion on that directory . (sys12:pnl:/work/cn/>) groups crcv1 canusr and (sys12:pnl:/work/cn/>) groups pfmgr pfw users i am having the .ssh in the directory /work/cn/ which has permision as drwx------ . ... (4 Replies)
Discussion started by: arunkumar_mca
4 Replies

9. UNIX for Dummies Questions & Answers

how to add permission of directory to a group

Hi, A simple and silly question on Unix. I have a directory named "a" and I would like to grant permission to group name "text" to access, read and execute my directory. Could anyone help me? Thanks. (2 Replies)
Discussion started by: ahjiefreak
2 Replies

10. Shell Programming and Scripting

command to add users to group

does a command exist to add users to more than one group? i think the usermod command can do this but i'm not really sure. past ways of me doing this has always been to just hack the /etc/group file and put the user in whatever group i need him to be in. however, files like /etc/groups... (2 Replies)
Discussion started by: Terrible
2 Replies
Login or Register to Ask a Question

Featured Tech Videos