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

2007-03-13 Thread Michelle Konzack
Am 2007-03-07 05:59:38, schrieb kawanokami: 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 A GROUP does not have an owner. contain user www-data and so I end up not knowing if a specified group The USER

How do I list all users in a group?

2007-03-07 Thread kawanokami
Hi, I know the question may have simple answer... but I googled to no avail for quite some time now. Is there a command to list all users that are part of a group? If I look into /etc/passwd I can see some informations, but not all and not easy to reconstruct. Thank you all for any advice, Matteo

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

2007-03-07 Thread Sven Arvidsson
On Wed, 2007-03-07 at 05:14 -0800, kawanokami wrote: Is there a command to list all users that are part of a group? If I look into /etc/passwd I can see some informations, but not all and not easy to reconstruct. What about /etc/group? -- Cheers, Sven Arvidsson http://www.whiz.se PGP Key ID

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

2007-03-07 Thread Cédric Lucantis
Hi, Hi, I know the question may have simple answer... but I googled to no avail for quite some time now. Is there a command to list all users that are part of a group? If I look into /etc/passwd I can see some informations, but not all and not easy to reconstruct. Thank you all for any

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

2007-03-07 Thread Chris Lale
kawanokami wrote: Hi, I know the question may have simple answer... but I googled to no avail for quite some time now. Is there a command to list all users that are part of a group? If I look into /etc/passwd I can see some informations, but not all and not easy to reconstruct. Thank you all for

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

2007-03-07 Thread kawanokami
On 7 Mar, 14:50, Sven Arvidsson [EMAIL PROTECTED] 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

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

2007-03-07 Thread Cassiano Leal
kawanokami wrote: Hi, I know the question may have simple answer... but I googled to no avail for quite some time now. Is there a command to list all users that are part of a group? If I look into /etc/passwd I can see some informations, but not all and not easy to reconstruct. Thank you all for

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

2007-03-07 Thread kawanokami
On 7 Mar, 15:00, Cédric Lucantis [EMAIL PROTECTED] wrote: I'd do this: group=group-name grep ^${group}: /etc/group | awk -F ':' '{print $4}' It produces a comma separated list of users It seems that there's no simple solution... This method is good, but I can't know if a user is in a group

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

2007-03-07 Thread michael
On 7 Mar 2007 05:14:34 -0800, kawanokami wrote Hi, I know the question may have simple answer... but I googled to no avail for quite some time now. Is there a command to list all users that are part of a group? If I look into /etc/passwd I can see some informations, but not all and not easy

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

2007-03-07 Thread Cédric Lucantis
It seems that there's no simple solution... This method is good, but I can't know if a user is in a group and is not listed because he owns the group or if no such user is present because there is none... Thanks anyway! hmm, interesting :) Here's the simplest I could find (call it with

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

2007-03-07 Thread kawanokami
On 7 Mar, 17:10, Cédric Lucantis [EMAIL PROTECTED] wrote: It seems that there's no simple solution... This method is good, but I can't know if a user is in a group and is not listed because he owns the group or if no such user is present because there is none... Thanks anyway! hmm,