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/sudoersand include directory/etc/sudoers.dmust be owned by root - SUDO file
/etc/sudoersand include directory/etc/sudoers.dmust not have world writable permission
For eample, /etc/sudoers should have below ownership and permission:
Change permission of SUDO include folder as below:
chmod 750 /etc/sudoers.d
No comments