[sudo-users] accidentally changed the owner of sudo
Tingyu Lu
tlu3 at ncsu.edu
Fri Sep 1 09:52:13 MDT 2017
Thanks for your reply. I followed your steps, and I can use sudo now.
However, when I did "ls -l", I got the same message : *-rw-rw-r-- 1 heat
heat 38 2017-04-25 15:22 sudo*
Does it mean the permission is wrong? How can I fix it?
Many Thanks,
Tingyu
On Fri, Sep 1, 2017 at 10:43 AM, Todd C. Miller <Todd.Miller at courtesan.com>
wrote:
> 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
>
--
Best Regards,
Tingyu Lu
Mechanical and Aerospace Engineering
911 Oval Dr. - 3404 EBIII
North Carolina State University
Raleigh, NC 27695
More information about the sudo-users
mailing list