How to find All Primary and Secondary Group ID's for a user | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


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 !!

How to find All Primary and Secondary Group ID's for a user

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-27-2002
sanjay92
Guest
 
Posts: n/a
Question How to find All Primary and Secondary Group ID's for a user

Is there any command which can list me all the Group ID's (Primary, Secondary ) assocaited with a single user.

Thanks
Sanjay
Sponsored Links
    #2  
Old 03-27-2002
killerserv's Avatar
killerserv killerserv is offline Forum Advisor  
Registered User
 
Join Date: Dec 2000
Last Activity: 9 August 2014, 10:30 PM EDT
Location: Phoenix, AZ
Posts: 670
Thanks: 0
Thanked 3 Times in 3 Posts
Have you try the id command ?

id [-gnruG] [--group] [--name] [--real] [--user] [--groups] [--help] [--version] [username]

By default, it prints the real user ID, real group ID, effective user ID if different from the real user ID, effective group ID if dif ferent from the real group ID, and supplemental group IDs. It prints each of these values preceded by a string identifying it and followed by the corresponding user or group name in parentheses. Post back if this doesnt help..
Sponsored Links
    #3  
Old 03-27-2002
sanjay92
Guest
 
Posts: n/a
Bug

Thanks !
I always looked in the default id command and I did not look in the options.
This will work for me.

Sanjay

Quote:
Originally posted by killerserv
Have you try the id command ?

id [-gnruG] [--group] [--name] [--real] [--user] [--groups] [--help] [--version] [username]

By default, it prints the real user ID, real group ID, effective user ID if different from the real user ID, effective group ID if dif ferent from the real group ID, and supplemental group IDs. It prints each of these values preceded by a string identifying it and followed by the corresponding user or group name in parentheses. Post back if this doesnt help..
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
primary group for user presul Ubuntu 2 08-04-2010 04:05 AM
Secondary linux dist WITHIN primary one inquam Linux 2 04-29-2010 11:34 AM
List ALL users in a Unix Group (Primary and Secondary) ckmehta Shell Programming and Scripting 5 05-27-2009 11:32 AM
Synchronizing primary and secondary name servers a2z1982 UNIX for Dummies Questions & Answers 4 11-01-2008 04:18 PM
primary-secondary sync problem mbannout UNIX for Advanced & Expert Users 0 04-15-2008 05:52 AM



All times are GMT -4. The time now is 04:57 PM.