-->
  • Recent Articles

    sudo fails with sudo: /etc/sudoers.d is world writable

     While working on one of the Oracle Linux 7 systdem i found that i can not run sudo anymore. It was giving error like "sudo: /etc/sudoers.d is world writable" . To fix this issue i did the following steps. 

    Solution:

    • SUDO file /etc/sudoers and include directory /etc/sudoers.d must be owned by root
    • SUDO file /etc/sudoers and include directory /etc/sudoers.d must not have world writable permission
    For eample, /etc/sudoers should have below ownership and permission:

    sudoers permission
    sudoers permission



    Change permission of SUDO include folder as below:

    chmod 750 /etc/sudoers.d
    


    No comments