listgroup - Lists hosts/users in a netgroup group.



    listgroup [--host] groupname1 [ [-]groupname2 [-]groupname3 ... ]

    listgroup [--user] groupname1 [ [-]groupname2 [-]groupname3 ... ]


Lists groups or members of a netgroup NIS map. listgroup without any parameters lists all the available netgroup groups.

With groupname parameters, listgroup will recusively list the members of the named groups. Each member in a group is a triplet of (host,user,domain). The host portion or user portion of the members is returned depending upon whether --host or --user is used. If neither --host or --user is used, listgroup will return the host portion.

If a {groupname} is preceded with a -, members of that group will be excluded from the output.

Groups are processed in the order they appear on the command line.



Restrict output to only contain the host portion of the members in the groupname.


Restrict output to only contain the user portion of the members in the groupname.


Perl Modules:



netgroup(4), Net::NIS::Listgroup(3), Net::NIS(3)


Original unknown

Major rewrite by Marc Prewitt <>

Copyright (C) 2003 Chelsea Networks, under the GNU GPL. listgroup comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions; see the COPYING file for details.

listgroup is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

listgroup is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA