When I tried to run sudo command the following error shows up:
sudo: /etc/sudoers is world writable
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
I also tried 'pkexec chmod 555 /etc/sudoers' but it showed the following error: Error getting authority: Error initializing authority: Could not connect: No such file or directory
Is there a way to get back to normalcy without reinstallation?
I tried explorer.exe . in wsl and it shows all the ubuntu files in windows so can i change file permissions from Windows? Please Help...
/etc/sudoers
, has a tendency to cause trouble. Restore withchmod 440 /etc/sudoers
for this particular file under Ubuntu (WSL is a modified Ubuntu).