How to find USERS in GROUP ?

raji10k's Avatar
Light Poster
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
0
pradeep's Avatar, Join Date: Apr 2005
Team Leader
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.
0