• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 619
  • Last Modified:

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.

1 Solution
sudo logging is not built-in  for Solaris 9

You can check /var/adm/sulog and /var/adm/messages when you issue sudo command.
bt707Author Commented:

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


Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now