Unix::Sysadmin::Group - group information class
use Unix::Sysadmin::Group;
$group = Unix::Sysadmin::Group->new();
returns an empty Unix::Sysadmin::User object.
This describes groups of Unix users.
Properties and methods are documented in the following section.
new() Returns an empty Unix::Sysadmin::Group object.
load(FILEHANDLE) creates a new object and loads its data from the open file handle FILEHANDLE. Reads data until a line containing 'GROUP' by itself is encountered
groupname()
The name of the group.
gid()
The numerical group ID
password()
The group password
members() The members of the group. In array context this returns a list of the members. In scalar context, it returns an reference to an array containing the group's members.
scope() Hosts this group is allowed on. 'ALL','NONE' or a colon separated list of hosts and/or netgroups. Netgroups are specified by a prefix of '+'. Defaults to 'ALL' if not otherwise specified.
exp_allow() colon separated list of host names and/or netgroups if scope is 'NONE', or the host does not appear, allow these anyway ignored if scope is 'ALL'
exp_deny() colon separated list of host names and/or netgroups if scope is 'ALL', or the host appears in the scope, deny these anyway ignored if scope is 'NONE'
validsortorders() get the fields that Group records may be sorted by. These are:
byGroupname byGID
defaultsortorder() This returns 'byGroupname'
Man(3)
pages (programmer's docs):
the Unix::Sysadmin::Host manpage, the Unix::Sysadmin::User manpage, the Unix::Sysadmin::Automount manpage, the Unix::Sysadmin::Group manpage, the Unix::Sysadmin::Netgroup manpage, the Unix::Sysadmin::List manpage, the Unix::Sysadmin::Cmds manpage, the Unix::Sysadmin::Files manpage the Unix::Sysadmin::Utility manpage the Unix::Sysadmin::Config manpage, the Unix::Sysadmin::Scoped manpage
Man(4)
pages (file formats):
the Unix::Sysadmin::Host.list manpage, the Unix::Sysadmin::User.list manpage, the Unix::Sysadmin::Automount.list manpage, the Unix::Sysadmin::Group.list manpage, the Unix::Sysadmin::Netgroup.list manpage
Man(1m)
pages (manager's docs):
the Unix::Sysadmin manpage, the Unix::Sysadmin::Setup manpage the usasetup manpage
Howard Owen <hbo@egbok.com> =cut