Answer the question
In order to leave comments, you need to log in
Ubuntu Server 18.04 sudo command not working?
Help me mess something up with any sudo command
error
----------------------
sudo: unable to stat /etc/sudoers: Permission denied
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
------------------
As a result, the server has fallen who can really help
rights
-r--r----- 1 root root 755 Jan 18 2018 sudoers
dr--r----- 2 root root 4096 Jun 5 10:53 sudoers.d
-r--r----- 1 root root 958 Feb 2 2020 /etc/sudoers.d/README
booted from LIVE DISK
Answer the question
In order to leave comments, you need to log in
And what is not clear here?
sudo: unable to stat /etc/sudoers: Permission denied
repair permissions on the file and touch it with your hands. he should never have
rights 0440 (root / root)
Add your user to the /etc/sudoers file, similar to the entries already there. Don't forget to log in as root to have access to the file.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question