Re: accidentally changed the owner of sudo

"[email protected]" <[email protected]>
Newsgroups gmane.comp.tools.sudo.user
Message-ID <[email protected]>
That assumes that su's permissions have not been altered; and give the command line executed ....

Looks like you will need to boot from unaltered media (CD/DVD/USB) or remove the drive and mount it on another system, and use that system to reset the file ownership.



-----Original Message-----
From: sudo-users [mailto:[email protected]] On Behalf Of Todd C. Miller
Sent: Friday, September 01, 2017 9:44 AM
To: Tingyu Lu <[email protected]>
Cc: [email protected]
Subject: Re: [sudo-users] accidentally changed the owner of sudo

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
account.

To repair the ownership and mode run:

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

 - todd
____________________________________________________________
sudo-users mailing list <[email protected]>
For list information, options, or to unsubscribe, visit:
https://www.sudo.ws/mailman/listinfo/sudo-users
____________________________________________________________
sudo-users mailing list <[email protected]>
For list information, options, or to unsubscribe, visit:
https://www.sudo.ws/mailman/listinfo/sudo-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.