S
S
Sergey Burduzha2017-08-22 00:45:52
ubuntu
Sergey Burduzha, 2017-08-22 00:45:52

How to solve "sudo: /usr/bin/sudo must be owned by user with uid 0 and have the setuid bit"?

There were problems with the network and decided to roll back using timeshift. Upon reboot I found
sudo: /usr/bin/sudo should be owned by user with uid 0 and have the setuid bit
I wonder what should I do now? Why did this happen?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Burduzha, 2017-08-22
@serii81

Here is this link sotvm.h1n.ru/main/5-porno.html and this
forum.ubuntu.ru/index.php?topic=245284.msg2058884#...
sudo passwd - changed the new root password, now everything works, I hope no goats..

N
Nazar Mokrinsky, 2017-08-22
@nazarpc

It looks like a bug in the application (it's best to ask the developers about it).
To fix it, you can boot into recovery mode (there is an advanced option in GRUB), then select the root console or something like that, then remount the file system in writable mode and fix sudo as written in the error, something like this:

mount -o remount,rw /
chown root:root /usr/bin/sudo
chmod u+s /usr/bin/sudo

But there is a suspicion that in addition to this file, this could happen to something else, so write to the developers anyway.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question