Ask Your Question

SUDO broken after upgrade f27 -> f28

asked 2018-09-19 23:42:04 -0600

updated 2018-09-19 23:47:58 -0600

After upgrading through Software app from f27 -> f28 my sudo is broken.

It worked initially as I was able to run sudo install -m 0755 -o root -g root -t /usr/local/bin ./bin/* to install an updated version of a program but the next time I tried I only get [user@Smachine ~]$ sudo sudo: /usr/local/bin/sudo must be owned by uid 0 and have the setuid bit set as the response.

Also, cannot use su even though I have checked on a console that I remember my root password correctly. Fails with error [usr@machine ~]$ su -c gedit Password: su: Authentication failure

edit retag flag offensive close merge delete


Found the exact cause, thank you @villykruse for the solution. I previously failed to install what I wanted by missing the . when I typed and copied all of /usr/bin into /usr/local/bin

Willtech gravatar imageWilltech ( 2018-09-20 06:12:40 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-09-20 00:31:40 -0600

villykruse gravatar image

run /usr/bin/sudo rm /usr/local/bin/sudo and that should remove the rouge sudo program.

edit flag offensive delete link more


Am I wrong to believe that there is usually next to nothing in /usr/local/bin ?

Willtech gravatar imageWilltech ( 2018-09-20 06:05:06 -0600 )edit

On a default installation, /usr/local/bin is empty or does not even exist. I do not know why you have stuff there.

genodeftest gravatar imagegenodeftest ( 2018-09-20 06:31:50 -0600 )edit

If you download and unpack a source tarball, you would compile it install it usually in /usr/local. That keeps the locally compiled stuff separate from system provided software.

villykruse gravatar imagevillykruse ( 2018-09-20 08:00:09 -0600 )edit

Question Tools

1 follower


Asked: 2018-09-19 23:42:04 -0600

Seen: 69 times

Last updated: Sep 20 '18