Go4Expert (http://www.go4expert.com/)
-   Unix (http://www.go4expert.com/forums/unix-forum/)
-   -   How to find USERS in GROUP ? (http://www.go4expert.com/forums/users-t17598/)

raji10k 19May2009 09:15

How to find USERS in GROUP ?
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

pradeep 4Sep2009 12:08

Re: How to find USERS in GROUP ?


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.

kumarmannu 11Feb2011 15:30

Re: How to find USERS in GROUP ?
Please Read

All times are GMT +5.5. The time now is 23:09.