HostedDB - Dedicated UNIX Servers

Securing-Optimizing-RH-Linux-1_2_208
Comments and suggestions concerning this book should be mailed to gmourani@videotron.ca © Copyright 1999-2000 Gerhard Mourani and Open Network Architecture ® 208 necessary when editing this file before you get a working file reports. The following is a working example from where you can start you own customization. Step 1 Create the tw.config file (touch /etc/tw.config) and add in this file all files and directories that you want monitored. The format of the configuration file is described in its header and in the man page tw.config (5): # Gerhard Mourani: gmourani@videotron.ca # last updated: 1999/11/12   #  First, root's "home" /root R !/root/.bash_history / R # OS itself /boot/vmlinuz R # critical boot resources  /boot R # Critical directories and files  /chroot R /etc R /etc/inetd.conf R /etc/nsswitch.conf R /etc/rc.d R /etc/mtab L /etc/motd L /etc/group R /etc/passwd L # other popular filesystems /usr R /usr/local R /dev L-am /usr/etc R # truncate home =/home R # var tree =/var/spool L /var/log L /var/lib L /var/spool/cron L !/var/lock # unusual directories  =/proc E =/tmp =/mnt/cdrom =/mnt/floppy Step 2 Now, for security reason change the mode of this file to be 0600 with the following command: [root@deep /]# chmod 600 /etc/tw.config