Re: accidentally changed the owner of sudo
Tingyu Lu <[email protected]>
| Newsgroups | gmane.comp.tools.sudo.user |
|---|---|
| Message-ID | <CAC1t3an6R_yJ7qZWw1FJNO=2O7aqhni1jmbMW7LoLq4p9tf0mA@mail.gmail.com> |
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 <[email protected]> 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 ____________________________________________________________ sudo-users mailing list <[email protected]> For list information, options, or to unsubscribe, visit: https://www.sudo.ws/mailman/listinfo/sudo-users