chown: changing ownership of '/etc/sudoers'
By Sarah Scott •
I want to work with kusnetes of AWS. I tried to install AWS CLI,
This command:
curl "" -o "awscliv2.zip"succeeded. But when I ran
sudo ./aws/installI got an error:
sudo: /etc/sudoers is owned by uid 1000, should be 0
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy pluginwhen I ran:
su - root
Password:
su: Authentication failureand when I ran:
chown root /etc/sudoersI got:
chown: changing ownership of '/etc/sudoers': Operation not permittedWhat is the problem?
11 Answer
The problem is exactly what the error messages say.
Do you know the root password?
If so, you should be typing that into the su command.
If su doesn’t work, see if you can login as root.
If that doesn’t work, try booting into emergency single-user mode.