How to find USERS in GROUP ?

Light Poster
19May2009,09:15   #1
raji10k's Avatar
HI Frndz

I have a halt with doubt frndz. I am using putty to connect my RHEL-4, but If I want to know all the users present in a group, How can I ?
when I use the following command, It shows the below error..!!

# system-config-users

system-config-users requires a currently running X server.


What shoud I do..?

Thanks in Advance
Team Leader
4Sep2009,12:08   #2
pradeep's Avatar
http://linux.die.net/man/8/system-config-users

Code:
cat /etc/passwd|grep guest|cut -d ':' -f 3|xargs -n 1 -I % grep % /etc/group|cut -d ':' -f 1
Try this command and replace "guest" with the username you want.