Issue the following command:
sudo last
The last command, by default, relies upon the /var/log/wtmp file existing.
If this file does not exist, then create it using the command:
and then set the permissions by issuing the command:
Issue the following command:
sudo lastb
The lastb command, by default, relies upon the /var/log/btmp file existing.
If this file does not exist, then create it using the command:
and then set the permissions by issuing the command:
Issue the following command:
sudo aptitude install logwatch
and select option "Internet"
logwatch allows the monitoring of logs.
It is a log analyser written in Perl with nice output.
Issue the following command:
sudo vi /etc/logwatch/conf/logwatch.conf
sudo vi /usr/share/logwatch/default.conf/logwatch.conf
and change the following as shown:
Output = mail
Format = html
MailTo = admin@sharewiz.net
To customize logwatch go to /usr/share/doc/logwatch-*/ directory and read the file HOWTO-Customize-LogWatch.
Copyright ShareWiz by Peter Roux