bt707
asked on
sudo logging
I just setup sudo on a new solaris 9 box, sudo is working fine, however I need to turn on logging for sudo and can't find anything
that shows how to turn on the logging. Does anyone know of any good links or how to turn on the logging.
Thanks,
that shows how to turn on the logging. Does anyone know of any good links or how to turn on the logging.
Thanks,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
correct, logging for sudo is not built in, I found a few pages that showed how others got it working, I have it working fine now.
not sure if there is better options here but looks to be getting everything we need.
in case anyone needs to set up sudo for logging, here is what I did to get it working.
create a log file as syslog does not create logs.
touch /var/log/sudo.log
edit the /etc/syslog.conf
added these two lines # must be tab seperated for sudo.log
local2.debug @loghost
local2.debug /var/log/sudo.log
stop and restart syslog
/etc/rc2.d/S74syslog stop
/etc/rc2.d/S74syslog start