Local System Files

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

///////////////////////////////////////////////////////////////////////////////
//
// files_system_local_objects.cfg
//
///////////////////////////////////////////////////////////////////////////////

#if vienna | nantes | berlin2 | warsaw | athens2 | athens4 | athens3 | [...]
        /etc/hostname.hme0 -rw-r--r-- 644 0 0 root root
#endif

#if berlin2 | warsaw | athens2 | athens4 | athens3 | athens1 | milan | [...]
        /etc/hostname.hme1 -rw-r--r-- 644 0 0 root root
#endif

#if berlin | calais | brussels | egbdfmus | egbdfmus2 | cologne | [...]
        /etc/hostname.le0 -rw-r--r-- 644 0 0 root root
#elif munich
        /etc/hostname.le0 -rw-r--r-- 644 0 1 root other
#endif

#if egbdfmus | egbdfmus2 | brussels
        /etc/hostname.le1 -rw-r--r-- 644 0 0 root root
//#elif munich
//      /etc/hostname.le1 -rw-r--r-- 644 0 1 root other
#endif

//#if sparediskserver
//      /etc/hostname.le2 -rw-r--r-- 644 0 0 root root
//#endif

#if tcpd
#  if solaris
        /etc/hosts.allow -rw-r----- 640 0 1 root other
        /etc/hosts.deny -rw-r----- 640 0 1 root other
#  elif sunos
        /etc/hosts.allow -rw-r----- 640 0 10 root staff
        /etc/hosts.deny -rw-r----- 640 0 10 root staff
#  elif linux
#    if tirana
        /etc/hosts.allow -rw-r----- 640 0 0 root root
        /etc/hosts.deny -rw-r----- 640 0 0 root root
#    endif
#  endif
#endif  // tcpd

#if sudo
        /etc/sudoers -r-------- 400 0 1 root other
#endif

/*
#if aliasmgr
        /etc/mail/classalias -rw-r--r-- 644 0 1 root other
        /etc/mail/ali1 -rw-r--r-- 644 0 1 root other
        /etc/mail/ali2 -rw-r--r-- 644 0 1 root other
        /etc/mail/ali3 -rw-r--r-- 644 0 1 root other
        /etc/mail/ali4 -rw-r--r-- 644 0 1 root other
#endif
*/

#if listmgr
        /etc/rc3.d/S82listmgr -rwxr--r-- 744 0 3 root sys
#endif

#if tirana
        /home/mailman/lists/openroad-users drwxrwsr-x 775 0 95 root mailman
#endif

#if nismaster
        /etc/NIS/acctsaliases -rw-r--r-- 644 0 0 root root
        /etc/NIS/aliases -rw-r--r-- 644 0 0 root root
        /etc/NIS/auto.home -rw-r--r-- 644 0 0 root root
        /etc/NIS/hosts -rw-r--r-- 644 0 0 root root
        /etc/NIS/passwd -rw-r--r-- 644 0 0 root root
        /etc/NIS/group -rw-r--r-- 644 0 0 root root
        /etc/NIS/netgroup -rw-r--r-- 644 0 0 root root
#endif

#if linux
        /root/.shosts -rw------- 600 0 0 root root
#elsif solaris
        /root/.shosts -rw------- 600 0 0 root root
        /root/.rhosts -rw------- 600 0 0 root root
#elsif sunos
        /root/.rhosts -rw------- 600 0 0 root root
#endif

///////////////////////////////////////////////////////////////////////////////

// rc?.d files

#if solaris

#  if openssh
        /etc/rc3.d/S24opensshd -rwxr--r-- 744 0 3 root sys
#    if ! no_ssh
        /etc/rc3.d/xS24sshd -rwxr--r-- 744 0 3 root sys
#    endif
#  else
#    if ! no_ssh
        /etc/rc3.d/S24sshd -rwxr--r-- 744 0 3 root sys
#    endif
        /etc/rc3.d/xS24opensshd -rwxr--r-- 744 0 3 root sys
#  endif
        /etc/rc3.d/S27ntpd -rwxr--r-- 744 0 3 root sys
        /etc/rc3.d/S90pikt -rwx------ 700 0 3 root sys

#  if vienna | nantes | milan // | milan1
        /etc/rc3.d/S80acctmgr -rwxr--r-- 744 0 3 root sys
#  endif

#  if warsaw
//      /etc/rc3.d/S28msqld -rwxr--r-- 744 0 3 root sys
        /etc/rc3.d/S32soc -rwxr--r-- 744 0 3 root sys
        /etc/rc3.d/S40rmpid -rwxr--r-- 744 0 3 root sys
#  endif

#  if warsaw | webapp
        /etc/rc3.d/S99ns-servers -rwxr--r-- 744 0 3 root sys
#  endif

#  if vienna    // sacomp; should use S31sacomp per the following?
        /etc/rc3.d/S78startsmb -rwxr--r-- 744 0 3 root sys
#  endif

#  if warsaw | webapp
        /etc/rc3.d/S31sacomp -rwxr--r-- 744 0 3 root sys
#  endif

#  if athens2 | athens4 /* | athens1 | athens3 */ // | egbdfcomp | warsaw
        /etc/rc3.d/S50ingres lrwxrwxrwx 777 0 1 root other
#  endif

#  if disksuite
        /etc/rc3.d/S25mdlogd lrwxrwxrwx 777 0 1 root other
#  endif

#  if calais
        /etc/rc3.d/S28amdir -rwxr--r-- 744 0 3 root sys
        /etc/rc3.d/S28postfix -rwxr--r-- 744 0 3 root sys
#  endif

#  if brussels | egbdfmus | egbdfmus2 | egbdfgreith | sheffield
        /etc/rc3.d/S91swapadd -rwxr--r-- 744 0 3 root sys
#  endif

#  if egbdfmus
        /etc/rc3.d/S30mathematica -rwxr--r-- 744 0 3 root sys
        /etc/rc3.d/S31spss -rwxr--r-- 744 0 3 root sys
#  endif

#  if sheffield
        /etc/rc3.d/S28gauss -rwxr--r-- 744 0 3 root sys
#  endif

#  if hamburg
        /etc/rc3.d/S50apache -rwxr--r-- 744 0 3 root sys
#  endif

/* these files are mv'ed to xS??* by FileWarnChk; see alarms.cfg and
   objects/files_unwanted_objects.cfg

        /etc/rc3.d/S50apache -rwxr--r-- 744 0 3 root sys
        /etc/rc3.d/S76snmpdx -rwxr--r-- 744 0 3 root sys
        /etc/rc3.d/S77dmi -rwxr--r-- 744 0 3 root sys
        /etc/rc3.d/S80mipagent -rwxr--r-- 744 0 3 root sys

#  if vm
        /etc/rc2.d/S96vmsa-server -rwxr--r-- 744 0 3 root sys
#  endif

 */

#  if homedirlinksys
        /home/egbdfmus lrwxrwxrwx 777 0 1 root other
        /home/egbdfperf lrwxrwxrwx 777 0 1 root other
#  endif

[...]

#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 down]

For more examples, see Samples.

 
Home | FAQ | News | Intro | Samples | Tutorial | Reference | Software
Developer's Notes | Licensing | Authors | Pikt-Users | Pikt-Workers | Related Projects | Site Index | Privacy Policy | Contact Us
Page best viewed at 1024x768 or greater.   Page last updated 2019-01-12.   This site is PIKT® powered.
Copyright © 1998-2019 Robert Osterlund. All rights reserved.
Home FAQ News Intro Samples Tutorial Reference Software
PIKT Logo
PIKT Page Title
View sample
Adsense/YPN
conflict
Pikt script