[sudo-users] accidentally changed the owner of sudo

Todd C. Miller Todd.Miller at courtesan.com
Fri Sep 1 08:43:57 MDT 2017

If you are using a system that does not let you log in as root,
such as Ubuntu or macOS, you will need to boot into single user
mode to repair the permissions and file mode.  On most other
systems you should be able to use "su" to change to the root

To repair the ownership and mode run:

    chown root /usr/bin/sudo
    chmod u+s /usr/bin/sudo

 - todd

More information about the sudo-users mailing list