I was messing with ubuntu trying to make autogen.sh work and did a dumb thing. I typed:
sudo chown -R emilia /usr/bin/
and after that I cannot use sudo anymore.
I tried so far:
logging as root and typing:
chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo
Didn't help.
I ran some tests and here are the results:
emilia@emilia:~$ ls -la /usr/bin | grep -v "root *root"
total 147656
drwxr-xr-x 2 emilia root 65536 Aug 14 16:06 .
-rwxr-xr-x 1 emilia root 51920 Feb 18 14:37 [
lrwxrwxrwx 1 emilia root 8 Aug 7 16:04 2to3 -> 2to3-2.7
-rwxr-xr-x 1 emilia root 96 Jul 2 21:02 2to3-2.7
emilia@tenshi:~$ ls -la /usr/bin | grep -v "rwxr-xr-x\|^l"
total 147656
-rwxrwxr-x 1 emilia emilia 22 Aug 14 16:06 autogen.sh
emilia@emilia:~$ ls -l /usr/bin/sudo
-rwxr-xr-x 1 emilia root 136808 Maj 4 19:25 /usr/bin/sudo
chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo
should have at least fixed the permissions and ownership of thesudo
binary.mount -o rw,remount /
before attempting to fix the permissions.