PIKT

Samples: Solaris System Files

PIKT Logo
Home FAQ News Intro Samples Tutorial Reference Software Authors Licensing SiteSearch


This files_system_solaris_objects.cfg example specifies important Solaris system files, together with their desired file attributes (for example, their ownerships and permissions).  This files_system_solaris_objects.cfg file is #include'd by the parent objects.cfg file (see the FilesSystem stanza).

///////////////////////////////////////////////////////////////////////////////
//
// files_system_solaris_objects.cfg
//
///////////////////////////////////////////////////////////////////////////////

#if solaris

        /kernel/genunix         -rwxr-xr-x      755     root    sys
        /etc/system             -rw-r--r--      644     root    sys

        /etc/mail/aliases       -rw-r--r--      644     root    bin

#  if ! ( cologne )
        /etc/auto_direct        -rw-r--r--      644     root    bin
#  endif

        /etc/auto_home          -rw-r--r--      644     root    bin
        /etc/auto_master        -rw-r--r--      644     root    bin

#  if ! cologne
        /etc/defaultdomain      -rw-r--r--      644     root    root
#  endif

        /etc/defaultrouter      -rw-r--r--      644     root    root
        /etc/dfs/dfstab         -rw-r--r--      644     root    sys
        /etc/group              -rw-r--r--      644     root    sys
        /etc/hosts              lrwxrwxrwx      777     root    root

#  if mus | comp | perf
        /etc/hosts.equiv        -rw-r--r--      644     root    other
#  endif

        /etc/inet/hosts         -r--r--r--      444     root    sys
        /etc/inittab            -rw-rw-r--      644     root    sys
        /etc/inetd.conf         lrwxrwxrwx      777     root    root
        /etc/inet/inetd.conf    -r--r--r--      444     root    sys
        /etc/magic              -r--r--r--      444     root    bin
#if solaris28
        /etc/mnttab             -r--r--r--      444     root    root
#else
        /etc/mnttab             -rw-r--r--      644     root    root
#endif
        /etc/netmasks           lrwxrwxrwx      777     root    root
        /etc/inet/netmasks      -r--r--r--      444     root    sys
        /etc/networks           lrwxrwxrwx      777     root    root
        /etc/inet/networks      -r--r--r--      444     root    sys
        /etc/nsswitch.conf      -rw-r--r--      644     root    sys
#  if ntpd
        /etc/ntp.conf           -rw-r--r--      644     root    other
#  endif
        /etc/passwd             -rw-r--r--      644     root    sys
        /etc/protocols          lrwxrwxrwx      777     root    root
        /etc/inet/protocols     -r--r--r--      444     root    sys
        /etc/resolv.conf        -rw-r--r--      644     root    other
        /etc/rpc                -rw-r--r--      644     root    sys
#  if ! nosendmail
        /etc/sendmail.cf        lrwxrwxrwx      777     root    other
#  endif
        /etc/mail/sendmail.cf   -r--r--r--      444     root    bin
        /etc/services           lrwxrwxrwx      777     root    root
        /etc/inet/services      -r--r--r--      444     root    sys
        /etc/shadow             -r--------      400     root    sys
        /etc/shells             -rw-r--r--      644     root    other
        /etc/syslog.conf        -rw-r--r--      644     root    sys
        /etc/termcap            lrwxrwxrwx      777     root    root
        /usr/share/lib/termcap  -rw-r--r--      644     root    bin
        /etc/ttydefs            -rw-r--r--      644     root    sys
        /etc/vfstab             -rw-r--r--      644     root    sys

        // to fix a buffer-overflow vulnerability:
        /usr/sbin/format        -r-x------      500     root    bin

[...]

#endif  // solaris

///////////////////////////////////////////////////////////////////////////////
On the piktmaster system, we would install the FilesSystem.obj file to each PIKT slave system with the command:
# piktc -iv +O FilesSystem +H all        [or: ... -H downsys]

[For more examples, see Samples.]

Home | FAQ | News | Intro | Samples | Tutorial | Reference | Software | Authors | Licensing | SiteSearch
Links | SiteIndex | Pikt-Users | Pikt-Workers | Contribute | ContactUs | Top of Page
Page best viewed at 1024x768.   Page last updated 2005-06-22.
This site is PIKT® powered.
PIKT® is a registered trademark of the University of Chicago.
Copyright © 1998-2005 Robert Osterlund.  All rights reserved.

Computer Books at Amazon.com

UNIX System Administration Handbook
UNIX System Administration Handbook

The Book of Webmin
The Book of Webmin

Automating Unix and Linux Administration
Automating Unix and Linux Administration

Unix Power Tools
Unix Power Tools

Red Hat Linux Administration: A Beginner's Guide
Red Hat Linux Administration: A Beginner's Guide