LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-31-2010, 02:42 PM   #1
named1
LQ Newbie
 
Registered: Aug 2010
Posts: 3

Rep: Reputation: 0
Linux Groups command


Hi all,

i would like to know a command which will tell us, 1. List of users under a group and 2.List of Group administrators in a group.
responce will be appriciatable.

Thanks.
 
Old 08-31-2010, 02:53 PM   #2
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Just cat /etc/group and pipe the result to a grep command.
 
Old 08-31-2010, 03:09 PM   #3
named1
LQ Newbie
 
Registered: Aug 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for your reply.

Can you let me know how can i get list of groups administrtor?

while adding new administrator to a groups by using gpasswd command with -A option i have mention previosly existing administrator user along with new one which am going to add now.
for this purpose i want to know the previuosly existing administrators in that particular group.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using the groups command vitalstrike82 Slackware 12 11-06-2008 11:26 AM
command to list all groups radiodee1 Linux - Newbie 4 07-09-2007 05:33 PM
Command to see User Groups: what is it? TSynergy Linux - Newbie 3 11-17-2005 11:40 PM
groups command not working.. samills70 Linux - Newbie 2 06-11-2004 06:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration