Results 1 to 7 of 7
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, ...
- 05-19-2009 #1Linux Newbie
- Join Date
- Aug 2008
- Posts
- 119
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
- 05-19-2009 #2
- 05-19-2009 #3Output will show <groupname>:<encrypted password for group (if needed)>:<group id>:<comma separated list of users belonging to that group>Code:
#grep <groupname> /etc/group
e.g.
Code:# grep wheel /etc/group wheel:x:10:root
- 05-19-2009 #4

yeah, i'm dumb, i misread that and gave the wrong answer
- 05-20-2009 #5Linux Newbie
- Join Date
- Aug 2008
- Posts
- 119
Thanks for reply Frndz
But, When I used the command
#grep wheel /etc/group
wheel
:10:root
I got the above thing but I have a group called big and users A,B and C when I use the command like this
#grep big /etc/group
big
:500:
I got only the above am not able to view user's in it
- 05-20-2009 #6
that means there are no users in the group
- 05-21-2009 #7Linux Newbie
- Join Date
- Aug 2008
- Posts
- 119
No my Frnd
when am using this command it display cool
#groups <user name>
It shows the user and group but when I used this one
#grep <group name> /etc/group
It display nothing except
big
:500:
Thanks in Advance


Reply With Quote