1836442 Members
3642 Online
110100 Solutions
New Discussion

Re: sudo logging file

 
E. Vodegel
Occasional Advisor

sudo logging file

Hello,

I have installed the application sudo on HP 11.0. I have edited the sudoers file. Some accounts have sudo rights now. Where does the logging (by default) take place? What is the name of the log file? Or how can I setup the logging, so I can see what the sudo accounts are doing?

Thanks, Bye
Erwin
2 REPLIES 2
Patrick Wallek
Honored Contributor

Re: sudo logging file

On my machine sudo activity is logged to /var/adm/syslog/syslog.log

I did not originally install sudo, so I am not sure if that is a standard set up or not.
Jim Moffitt_1
Valued Contributor

Re: sudo logging file

/var/adm/syslog/syslog.log is correct, but you can also change it so it has it's own log, this is how I do it on 10.20:

#visudo

# Override builtin defaults
Defaults syslog=auth
Defaults logfile=/var/adm/syslog/sudo.log

This will create a sudo log for you if it hasn't been created.