NAME

Unix::Sysadmin::Cmds - Unix file name base class


SYNOPSIS

 use Unix::Sysadmin::Files;
 use Unix::Sysadmin::Files::FreeBSD;
 use Unix::Sysadmin::Files::OpenBSD;
 use Unix::Sysadmin::Files::SunOS;
 use Unix::Sysadmin::Files::Linux;
 $files = Unix::Sysadmin::Files->new();
 $fbsdfiles = Unix::Sysadmin::Files::FreeBSD->new();
 $obsdfiles = Unix::Sysadmin::Files::OpenBSD->new();
 $sunfiles = Unix::Sysadmin::Files::SunOS->new();
 $linuxfiles = Unix::Sysadmin::Files::Linux->new();
 return Files:: objects of the appropriate type


DESCRIPTION

This class describes Unix files. Subclasses describe files specific to various *nix flavors, which may override values given in the base class. Currently three OS varieties are supported. They are FreeBSD, SunOS (Solaris) and Linux. Files are the fully qualified path to a given file under a given OS. Files are referenced with ``tags'', which are generally the name of the file in uppercase. For example, the file with tag ``AMDMAP'' might have the value ``/etc/amd.map''.


Constructors

new()

      Returns an object of the specified type.


Properties

filenames()

Prints a list of file tags and their values. The base class provides the following generic values:

 AMDMAP => "/etc/amd.map",
 AUTHCONF => "/etc/auth.conf",
 GROUP=>"/etc/group",
 INETDCONF=>"/etc/inetd.conf",
 PAMCONF => "/etc/pam.conf",
 PW => "/etc/passwd",

Unix::Sysadmin::Files::FreeBSD provides the following additions/overrides:

 KERBCONF => "/etc/kerberosIV/krb.conf",
 KERBREALMS =>  "/etc/kerberosIV/krb.realms",
 PW =>  "/etc/master.passwd",
 SPW =>  "/etc/master.passwd",
 BASEAMDMAP =>  "/etc/amd.map",

Unix::Sysadmin::Files::OpenBSD provides identical additions.

Unix::Sysadmin::Files::Linux provides the following additions/overrides:

 SPW => "/etc/shadow";
 BASEAMDMAP =>  "/etc/amd.map",
 BASEAUTOFSMAP => "/etc/auto_master",

Unix::Sysadmin::Files::SunOS provides identical additions.

filename()

Given a supported tag, returns the path to the file. For example, $files->filename("PW") might return ``/etc/passwd''.


SEE ALSO

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

the usatest manpage

the usabackup manpage

the usaupdate manpage

the usapush manpage


AUTHOR

Howard Owen <hbo@egbok.com> =cut