logrotate.sh
Code: Select all
#!/bin/sh
if [ `whoami` != "root" ]; then
ktsuss "$0"
exit
fi
ls -al /var/log
logrotate /etc/logrotate.conf
ls -al /var/log
read
Code: Select all
guest@porteus:~$ logrotate.sh
bash: logrotate.sh: command not found
guest@porteus:~$ /home/guest/logrotate.sh
total 1156
:
:
etc