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
Where are my groups mhenryj AIX 4 01-21-2008 03:54 PM
Secondary groups show in groups but don't show in id (Not working) zen03 HP-UX 4 12-31-2007 08:15 AM
users and groups sammet UNIX for Dummies Questions & Answers 1 12-06-2007 08:52 AM
Adding new groups!! atheek SUN Solaris 7 10-10-2006 01:42 AM
User groups Zak UNIX for Dummies Questions & Answers 3 05-10-2006 07:54 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 08-08-2007
Registered User
 

Join Date: Jul 2007
Posts: 53
how to fing groups

whats the command to find a particular group,pls its urgent

thnks
Reply With Quote
Forum Sponsor
  #2  
Old 08-08-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Code:
cat /etc/group
normally does the trick.

or

Code:
id
depends what you are wanting of course.
Reply With Quote
  #3  
Old 08-08-2007
Moderator
 

Join Date: Dec 2003
Location: /dev/fl
Posts: 1,047
The command

id -Gn [user]

displays the groups to which you (or optionally the specified user) belong.
Reply With Quote
  #4  
Old 08-08-2007
reborg's Avatar
Administrator
 

Join Date: Mar 2005
Location: Ireland
Posts: 3,592
Quote:
Originally Posted by porter View Post
Code:
cat /etc/group
normally does the trick.
Only if using file based groups.
Code:
getent group
is a better approach.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




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


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

Content Relevant URLs by vBSEO 3.2.0