AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  Configuration error sudoers

    Posted Mon January 23, 2017 07:37 AM

    Originally posted by: xca1054


    We have to log every administrative command. Therefore I added this line to the sudoers file:

    Defaults log_output

    Then I get following  error while closing visudo, and every sudo su -:

    > sudo su -
    sudo: unknown defaults entry `log_output'

    Any idea?

    What are the defaults I have to configure. We don't need the replaying function, we just have to log commands made after a context switch per sudo.

    oslevel is aix #7.1.0.0

    / #sudo -V
    Sudo version 1.7.2

    Thank in advance

    MAtthias

     

     



  • 2.  Re: Configuration error sudoers

    Posted Thu January 26, 2017 05:06 PM

    Originally posted by: Ed@TDI


    The log_output option was introduced in Sudo version 1.7.4p4.  Looks like you will need to upgrade Sudo to use it.



  • 3.  Re: Configuration error sudoers

    Posted Thu January 26, 2017 05:12 PM

    Originally posted by: Ed@TDI


    Also, the log_output feature is used to log the output from commands not the commands entered. 



  • 4.  Re: Configuration error sudoers

    Posted Thu February 02, 2017 07:08 AM

    Originally posted by: xca1054


    ok, then

    DEFAULTS LOG_INPUT

    would be the right configuration. Same dependencies to sudo version 1.7.4p4?

    Thanks in advance

    Matthias