0

I did some fault command:

sudo chown -R $USER:$USER /usr/bin/

After that whenever I try to run sudo command I got this following message:

sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

Then when I check it with this command:

ls -l /usr/bin/sudo

I got this:

-rwxrwxrwx 1 server server 149080 Okt 11  2019 /usr/bin/sudo

When I try to take it back to the root:

sudo chown root:root /usr/bin

I can't:

sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

When I try to login use su I also forgot the su password because I never set it up when installation:

So, how to fix it and take the /usr/bin back to the root permission..?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.