So you want command to print ALL members of a group. For example, if I type
somecommand GROUPNAME
It should print list of users in both primary and secondary group. Am i right? if so you need to write a small shell script to query both /etc/passwd and /etc/group. Lemme know so that I can come with something.
edit: Have you tried members command?
Code:
members --all groupname
members --all ftp
From the man page:
members is a program that sends a space-separated list of secondary and primary member names to its standard output.
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!
If you have knowledge, let others light their candles at it.
Certified to work on
HP-UX /
Sun Solaris /
RedHat