AIX

AIX

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

 View Only
Expand all | Collapse all

Can no longer sudo: /etc/sudoers is mode 0740, should be 0440

  • 1.  Can no longer sudo: /etc/sudoers is mode 0740, should be 0440

    Posted Tue October 16, 2012 02:09 PM

    Originally posted by: SystemAdmin


    Hi,

    I can no longer use sudo in our server. It prompts with this message "sudo: /etc/sudoers is mode 0740, should be 0440" every time I run sudo command.

    Kindly advise on how to restore this.
    Server: vhost0516
    OS: Linux

    idcuser@vhost0516 ~$ sudo su - baadmin
    sudo: /etc/sudoers is mode 0740, should be 0440

    idcuser@vhost0516 ~$ ls -ltr /etc/sudoers
    -rwxr----- 1 root root 3301 Oct 16 16:04 /etc/sudoers

    Thanks.

    Regards,
    Regie Ringor


  • 2.  Re: Can no longer sudo: /etc/sudoers is mode 0740, should be 0440

    Posted Thu October 25, 2012 07:41 AM

    Originally posted by: teletype


    Whats wrong with chmod? If you can get root acces to the system of course.

    Or is your question how it happened? In that case I can only guess. But maybe some[one|thing] moved the file, edited it and copied it back.
    Then the file is recreated with the umask of root.