Fixed daily so that it no longer does accounting since FreeBSD does not
yet have the accounting stuff in it. Disabled ncheck search in security due to missing ncheck.
This commit is contained in:
parent
3c37182747
commit
fb7cd0676b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=251
14
etc/daily
14
etc/daily
@ -50,13 +50,13 @@ if [ -f /etc/news.expire ]; then
|
|||||||
/etc/news.expire
|
/etc/news.expire
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo ""
|
#echo ""
|
||||||
echo "Purging accounting records:"
|
#echo "Purging accounting records:"
|
||||||
mv /var/account/acct.2 /var/account/acct.3
|
#mv /var/account/acct.2 /var/account/acct.3
|
||||||
mv /var/account/acct.1 /var/account/acct.2
|
#mv /var/account/acct.1 /var/account/acct.2
|
||||||
mv /var/account/acct.0 /var/account/acct.1
|
#mv /var/account/acct.0 /var/account/acct.1
|
||||||
cp /var/account/acct /var/account/acct.0
|
#cp /var/account/acct /var/account/acct.0
|
||||||
sa -s > /dev/null
|
#sa -s > /dev/null
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Backup passwd and group files:"
|
echo "Backup passwd and group files:"
|
||||||
|
@ -10,6 +10,7 @@ echo "Subject: $host security check output"
|
|||||||
LOG=/var/log
|
LOG=/var/log
|
||||||
TMP=/tmp/_secure.$$
|
TMP=/tmp/_secure.$$
|
||||||
|
|
||||||
|
if false; then
|
||||||
echo "checking setuid files and devices:"
|
echo "checking setuid files and devices:"
|
||||||
MP=`mount -t ufs | sed 's;/dev/;&r;' | awk '{ print $1 " " $3 }'`
|
MP=`mount -t ufs | sed 's;/dev/;&r;' | awk '{ print $1 " " $3 }'`
|
||||||
set $MP
|
set $MP
|
||||||
@ -29,6 +30,7 @@ if cmp $LOG/setuid.today $TMP >/dev/null; then :; else
|
|||||||
mv $TMP $LOG/setuid.today
|
mv $TMP $LOG/setuid.today
|
||||||
fi
|
fi
|
||||||
rm -f $TMP
|
rm -f $TMP
|
||||||
|
fi
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo ""
|
echo ""
|
||||||
|
Loading…
Reference in New Issue
Block a user