View all users in a specific group in CentOS
Posted
by
slayernoah
on Super User
See other posts from Super User
or by slayernoah
Published on 2013-11-07T15:48:02Z
Indexed on
2013/11/07
15:59 UTC
Read the original article
Hit count: 405
I added a user user01
to a group group01
using: usermod -a -G group01 user01
When I run in command id user01
it shows that this user has actually been added to the group.
However, the file /etc/group
doesn't reflect this.
i.e. I believe that on this file, users that belong to each of the groups should be listed next to it. Please correct me if I am wrong.
This is a fresh installation of CentOS 6.4
Also, since id user01
shows that this is updated, is there any way to check all the members of group group01
?
© Super User or respective owner