👋

Sudo doesn't work

2021/10/14に公開

Issue
ubuntu

$ sudo
sudo: /etc/sudoers is owned by uid 1000, should be 0
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin

Solution
power shell or command pronpt

$ wsl -u root
$ chown root:root /etc/sudoers

Discussion