Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Log to TXT File

Status
Not open for further replies.
Oct 22, 2004
26
Hi Chaps

Having a little problem Ive witten a helpdesk menu for my helpdesk people so they can perform basic functions. I was wondering is there any way of track changes/ usage of pseudo?
 
visudo
Defaults: ALL logfile = /path/to/sudo.log
:wq!

echo "0 23 * * * /usr/bin/mailx -s "SUDO Log" you@somewhere < /path/to/sudo.log" >> /var/spool/cron/crontabs/root

/etc/init.d/cron stop && /etc/init.d/cron start
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top