diff options
author | Yoann Vandoorselaere <yoann@mandriva.com> | 2000-03-22 17:39:12 +0000 |
---|---|---|
committer | Yoann Vandoorselaere <yoann@mandriva.com> | 2000-03-22 17:39:12 +0000 |
commit | 80a65450bd92bd7d24c8e5087856053bbacfe9d9 (patch) | |
tree | 5e8858584f8e33a80645e9284b7616741d142fbf /init-sh/level5.sh | |
parent | ee50375647abff0b29c25673938835cbac434eb7 (diff) | |
download | msec-80a65450bd92bd7d24c8e5087856053bbacfe9d9.tar msec-80a65450bd92bd7d24c8e5087856053bbacfe9d9.tar.gz msec-80a65450bd92bd7d24c8e5087856053bbacfe9d9.tar.bz2 msec-80a65450bd92bd7d24c8e5087856053bbacfe9d9.tar.xz msec-80a65450bd92bd7d24c8e5087856053bbacfe9d9.zip |
*** empty log message ***
Diffstat (limited to 'init-sh/level5.sh')
-rwxr-xr-x | init-sh/level5.sh | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/init-sh/level5.sh b/init-sh/level5.sh index 0e458b7..0d9b58c 100755 --- a/init-sh/level5.sh +++ b/init-sh/level5.sh @@ -70,7 +70,23 @@ AddRules "0 0 * * * root /usr/share/msec/security.sh" /etc/crontab ################################################### -# Wanna a password ? +# setup BSD accounting. + +echo "Setting up BSD process accounting..." +if [[ -f /sbin/accton ]]; then + AddRules "touch /var/log/security/pacct.log" /etc/rc.d/rc.local + AddRules "/sbin/accton /var/log/security/pacct.log" /etc/rc.d/rc.local + AddRules "/var/log/security/pacct.log {" /etc/logrotate.conf + AddRules " postrotate" /etc/logrotate.conf + AddRules " /sbin/accton /var/log/security/pacct.log" /etc/logrotate.conf + AddRules " }" /etc/logrotate.conf + touch /var/log/security/pacct.log + chown root.root /var/log/security/pacct.log + chmod 600 /var/log/security/pacct.log + /sbin/accton /var/log/security/pacct.log +fi + +# Wanna password ? LiloUpdate; echo -n "Running lilo to record new config : " |