Unix Shell - Users of Same Group from /etc/passwd

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > October 2006 > Users of Same Group from /etc/passwd





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Users of Same Group from /etc/passwd
Rasheed

2006-10-26, 1:30 am

how can we show only those users who belong to same group.
i,e

GroupA user1 user5
Group B user2 user4

Hufnus

2006-10-26, 1:30 am

On 25 Oct 2006 20:04:51 -0700
"Rasheed" <rasheedraz@gmail.com> wrote:

> how can we show only those users who belong to same group.
> i,e
>
> GroupA user1 user5
> Group B user2 user4
>


I am confused, user membership on a group is listed in
/etc/group and not in /etc/passwd?

TonyB


Fall is my favorite season in Los Angeles, watching the birds
change color and fall from the trees.
David Letterman (1947 - )

--
__ __ _ I N C. http://www.sysdev.org
/ __|\\// __|| \ __ __ / tonyb@sysdev.org
\__ \ \/\__ \||)|/ O_)\/ / \/ System Tools / Utilities
|___/ || ___/|_ /\___|\_/ WIntel / Linux Device Drivers

Kaz Kylheku

2006-10-26, 1:30 am

Hufnus wrote:
> I am confused, user membership on a group is listed in
> /etc/group and not in /etc/passwd?


The /etc/passwd file assigns a primary group ID to each user. The
/etc/group file gives names to the group ID's, and associates users
with supplementary group ID's.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com