![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| allowing members of a group to kill a process | vastcharade | High Level Programming | 1 | 01-17-2008 04:55 PM |
| Monkcast #12: IBM HW group OEMs Solaris to chagrin of SW group & a ... - ZDNet.com bl | iBot | UNIX and Linux RSS News | 0 | 08-17-2007 01:30 PM |
| make issue when I add some members into a NIS group on solaris 9,please help !! | lk74612 | SUN Solaris | 4 | 11-17-2006 02:07 AM |
| listing members of a unix group | ovaska | UNIX for Dummies Questions & Answers | 2 | 03-09-2005 02:54 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
members in a group
Hi all,
I am new to Linux.Can anyone tell me how to display or list all the members in a group? Thanks in advance. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Look out for the following files:
/etc/passwd and /etc/group Hope this helps! nua7 |
|
#3
|
|||
|
|||
|
one way, assume we want the group called prog:
Code:
grep '^prog' /etc/group |
|
#4
|
|||
|
|||
|
Use the command:
# groups Rgs, Oktawik |
|
#5
|
|||
|
|||
|
groups will simply list out the groups avalaible on the system. It won't give you the members associated with them.
Grepping on /etc/group with the desired group name would do the trick. |
|
#6
|
|||
|
|||
|
On my Linux at least, groups era prints which groups I am a member of.
|
|
#7
|
|||
|
|||
|
Thank you all...
|
|||
| Google The UNIX and Linux Forums |