Go4Expert

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 ?
 
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.

kumarmannu 11Feb2011 15:30

Re: How to find USERS in GROUP ?
 
Please Read
http://www.unixtutorial.org/2008/01/...for-unix-user/


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