LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-12-2004, 01:42 AM   #1
hindrik
LQ Newbie
 
Registered: Jun 2004
Posts: 5

Rep: Reputation: 0
get users in group


Does anyone knows how to get all users from a specified group in linux Suse9.0?
In AIX i use the lsgroup command, but i don't know a similar command for Linux.
 
Old 08-12-2004, 06:37 AM   #2
anon237
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
I'm not aware of a single command that can do this, but the following one-liner should get you going:

grep '^audio' /etc/group | awk -F: '{ print $NF }'

Substitute audio with the group you are looking for.

Hope this helps.
 
Old 08-12-2004, 08:05 AM   #3
hindrik
LQ Newbie
 
Registered: Jun 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Alas,

that won't work because i get my groups through nis.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
users list in /etc/group Milosevic Slackware 6 11-10-2005 11:30 AM
number of users in a group cookie_ie Programming 7 03-24-2005 03:43 PM
/etc/group - the group users empty Artanicus Linux - General 2 02-22-2005 04:25 AM
Users Group datadriven General 2 04-22-2004 01:08 PM
Microsoft Users Group Jasutinsama General 0 04-02-2001 05:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:59 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
Open Source Consulting | Domain Registration