Link to home
Start Free TrialLog in
Avatar of bt707
bt707Flag for United States of America

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,
ASKER CERTIFIED SOLUTION
Avatar of yuzh
yuzh

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bt707

ASKER

yuzh,

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