Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Group command

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0


How would I find the groups for 4 users? I can type in the 'group' command for myself but want to build a script that will give me each persons name and all the groups they are in.

I am on a Solaris 7 os.
 
Hi Trapr,

the following command will give you the needed information:

id -a username

It gives you the uid, the gid and all groups the user belongs to.

Hope that helps

mrjazz [pc2]
 
Hi again,

just found out that you put that question in the UNIX scripting forum as well & that I misunderstood your question a little bit. [sad]
Please have a look in the scripting forum where I put the right answer.

mrjazz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top