sudo logging

Posted on 2006-04-12
Last Modified: 2013-12-26
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.

Question by:bt707
    LVL 38

    Accepted 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.

    Author Comment


    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


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Suggested Solutions

    Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
    Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now