May 5, 2004 #1 thendal Programmer Joined Aug 23, 2000 Messages 284 Hi all! Is there a command to list all users in a unix group? Thanks.
May 5, 2004 #2 jyotko Technical User Joined Jan 17, 2004 Messages 23 Location US I don't know of a command to list all users in a group. The following should work: grep groupname /etc/group if you are using a group file. Upvote 0 Downvote
I don't know of a command to list all users in a group. The following should work: grep groupname /etc/group if you are using a group file.
May 5, 2004 Thread starter #3 thendal Programmer Joined Aug 23, 2000 Messages 284 Thank you jyoto. ..but not lot of users will have access to /etc/group file....right. I thought there will be a command simillar to groups <username> to find out which group a user belong to .... Upvote 0 Downvote
Thank you jyoto. ..but not lot of users will have access to /etc/group file....right. I thought there will be a command simillar to groups <username> to find out which group a user belong to ....
May 6, 2004 #4 mrmac228 IS-IT--Management Joined May 27, 2003 Messages 255 Location GB As the user, the command 'id' will tell them which groups they belong to. I love deadlines. I like the whooshing sound they make as they fly by - Douglas Adams Upvote 0 Downvote
As the user, the command 'id' will tell them which groups they belong to. I love deadlines. I like the whooshing sound they make as they fly by - Douglas Adams
May 17, 2004 #5 clonny2 MIS Joined Jan 28, 2003 Messages 470 Location US getent group >---------------------------------------Lawrence Feldman SR. QA. Engineer SNAP Appliance lfeldman@snapappliance.com Upvote 0 Downvote
getent group >---------------------------------------Lawrence Feldman SR. QA. Engineer SNAP Appliance lfeldman@snapappliance.com