Whenever i use sudo
command i get this message:
sudo: unable to stat /etc/sudoers.d/README: No such file or directory
i ran into this trouble when i was strugling with chmod using which i changed the permissions on /etc/sudoers
, /etc/sudoers.d
and also /etc/sudoers.d/README
I solved the issue with /etc/sudoers
from this link.
Nut now when I look at the permissions of the file /etc/sudoers.d/README
, it says 'the permissions of README could not be determined'
This happens when i use ls
ls -l /etc/sudoers.d/
ls: cannot access /etc/sudoers.d/README: Permission denied
total 0
-????????? ? ? ? ? ? README
Best Answer
This is what it should be:
so to restore permissions do a:
From comments: the level above seems wrong so do this 1st:
so to restore permissions do a: