Topic
  • 1 reply
  • Latest Post - ‏2012-10-25T11:41:24Z by teletype
SystemAdmin
SystemAdmin
6902 Posts

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

‏2012-10-16T18:08:42Z |
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
Updated on 2012-10-25T11:41:24Z at 2012-10-25T11:41:24Z by teletype
  • teletype
    teletype
    27 Posts

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

    ‏2012-10-25T11:41:24Z  
    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.