I have readjusted my ubuntu at sight password by recovery setting after that ns can"t run my sudo command in common user

i have attempted to cracked my previous password in Recovery mode i followed this link to crack my password

sudo: /usr/local/bin/sudo should be own by uid 0 and also have the setuid little bit set

-r-sr-xr-x 1 source root 136808 may 29 2017 sudo

/usr/local/bin$ ./sudo ---> i need this /usr/local/bin ./sudo not working also throw the listed below errorsudo: ./sudo should be own by uid 0 and have the setuid bit set

/usr/bin$ ./sudo --> working fine

usage: sudo -h | -K | -k | -VMy question is

I need to accessibility my sudo comand native the terminal from anywhere i have to run

Any help will be evaluate


ubuntu sudo setuid
share
boost this inquiry
follow
edited january 23 "18 in ~ 16:09
muthukumar selvaraj
asked jan 23 "18 in ~ 15:52
*

muthukumar selvarajmuthukumar selvaraj
11311 gold badge11 silver badge66 bronze badges
6
| display 1 more comment

3 answers 3


active earliest Votes
8
You shouldn’t have a /usr/local/bin/sudo, it is what’s breaking points (not the password change). Relocate it the end of the way:

/usr/bin/sudo mv /usr/local/bin/sudo,2and then tell your shell around it:

hash -rThat will gain back the sudo functionality you’re used to.

You are watching: Sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set


share
improve this prize
monitor
answered jan 23 "18 at 16:07
*

Stephen KittStephen Kitt
320k4242 gold badges819819 silver- badges913913 bronze title
10
| display 5 an ext comments
2
I newly experienced this problem because I ran the complying with command

sudo chmod -R 777 /usr/*Unfortunately /usr/bin/sudo is not owned by root and also breaks together a result.

To fix the problem I booted into recovery mode which gives a scroll down food selection with an choice to drop down to a source shell.

From the root shell I ran the following commands:

# remount disks in review write modemount -o remount,rw /mount --all# return ownershipchown root:root /usr/bin/sudo# solve permissionschmod 4755 /usr/bin/sudorebootThis addressed my difficulties once i logged earlier in as a user.


re-publishing
enhance this price
follow
edited Feb 9 at 16:20
*

CommunityBot
1
answer Sep 5 "19 at 4:00
*

Andrew JudellAndrew Judell
2133 bronze title
add a comment |
-2
It works for me as soon as I reboot, and also go to advance recovery, and run this commands:

mount -o remount,rw /chown roo:root /usr/bin/sudochmod 4755 /usr/bin/sudoreboot
re-publishing
improve this answer
monitor
edited Oct 2 "19 in ~ 21:53

*

roaima
78.3k1111 gold badges104104 silver- badges197197 bronze badges
answered Oct 2 "19 at 15:54
DariushDariush
1
include a comment |

her Answer


thanks for contributing an answer to carolannpeacock.com & Linux stack Exchange!

Please be sure to answer the question. Administer details and share your research!

But avoid

Asking because that help, clarification, or responding to various other answers.Making statements based on opinion; ago them increase with recommendations or personal experience.

To learn more, view our advice on writing an excellent answers.

See more: What Happens If You Put Too Much Developer In Hair Dye ? Easy Ways To Fix


Draft saved
Draft discarded

Sign up or log in in


authorize up making use of Google
sign up utilizing Facebook
sign up making use of Email and Password
send

Post together a guest


name
email Required, yet never shown


Post together a guest


name
email

Required, however never shown


short article Your price Discard

By click “Post her Answer”, you agree come our regards to service, privacy policy and also cookie plan


Not the answer you're looking for? Browse various other questions tagged ubuntu sudo setuid or ask your very own question.


The Overflow Blog
Featured on Meta
associated
10
using sudo on GUI applications
12
exactly how to get back sudo on Ubuntu?
2
Parallels top top Mac - can no much longer sudo in ~ Ubuntu
10
exactly how to avoid the caller's shell from being offered in sudo
0
just how to solve a corrupt .profile record for sudo user
11
i m sorry user's password go `sudo` asks for?
0
How can I stop a process to adjust its setuid bit ago to RUID within the process itself
2
Why doesn't setuid() job-related with non-root users?
0
Asked for sudo password only sometimes
1
SUDO effective for active Directory admin group member using wrong password
hot Network concerns more hot concerns

question feed
i ordered it to RSS
concern feed To subscribe to this RSS feed, copy and paste this URL right into your RSS reader.


carolannpeacock.com & Linux
company
stack Exchange Network
site style / logo design © 2021 stack Exchange Inc; user contributions licensed under cc by-sa. Rev2021.10.7.40412


Linux is a registered trademark of Linus Torvalds. Carolannpeacock.com is a registered trademark that The open Group. This website is not affiliated v Linus Torvalds or The Open group in any way.
carolannpeacock.com & Linux stack Exchange works finest with JavaScript allowed
*

her privacy

By click “Accept all cookies”, girlfriend agree stack Exchange deserve to store cookies on your device and disclose info in accordance v our Cookie Policy.