I changed ownership away from root in /usr/local/bin
and in /usr/bin
.
However, now I am unable to use sudo. The message I get when trying to use sudo is:
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
I have looked online and have tried the solutions using chown
but nothing works.
When I type this command:
ls -l /usr/bin/sudo
I get the output:
-rwsr-xr-x 1 swirlydino root 136808 May 29 06:32 /usr/bin/sudo
Also when I type this command:
ls -ld /usr /usr/bin
I get this output:
drwxr-xr-x 10 root root 4096 Jun 14 10:15 /usr
drwxr-xr-x 2 datax root 36864 Aug 18 14:26 /usr/bin
So, how can I change back the ownership from swirlydino to root?