Re: accidentally changed the owner of sudo

Tingyu Lu <[email protected]>
Newsgroups gmane.comp.tools.sudo.user
Message-ID <CAC1t3akTovuLQ5hzycPr12iO34CvgB6-ZnpQLCaBfOhydAXaUw@mail.gmail.com>
Thanks for your reply, I can log in as root, and I did chown root
/usr/bin/sudo && chmod u+s /usr/bin/sudo.
Now I can use the sudo command. However when I type "ls -l", I got the same
message before. How can I fix it?

Thanks,
Tingyu

On Fri, Sep 1, 2017 at 10:51 AM, [email protected] <
[email protected]> wrote:

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



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