[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How do I list all users in a group?



On 7 Mar, 14:50, Sven Arvidsson <s...@whiz.se> wrote:

> What about /etc/group?

sorry... I should have mentioned that I looked into that too. It
doesn't seem to list the group owner... I mean: group www-data doesn't
contain user www-data and so I end up not knowing if a specified group
is "owned" by someone.
What I do now is reading the users list for then use the command
"groups" for listing the the groups that user is in ... and then I do
reconstruct the information.
I'm wondering if there is a simple one-line command I could use in
bash...
Thanks again for your kindness,

Matteo



Reply to: