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
boost this inquiry
edited january 23 "18 in ~ 16:09
asked jan 23 "18 in ~ 15:52
muthukumar selvarajmuthukumar selvaraj
11311 gold badge11 silver badge66 bronze badges
| display 1 more comment
3 answers 3
active earliest Votes
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
improve this prize
answered jan 23 "18 at 16:07
Stephen KittStephen Kitt
320k4242 gold badges819819 silver- badges913913 bronze title
| display 5 an ext comments
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.
enhance this price
edited Feb 9 at 16:20
answer Sep 5 "19 at 4:00
Andrew JudellAndrew Judell
2133 bronze title
add a comment |
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
improve this answer
edited Oct 2 "19 in ~ 21:53
78.3k1111 gold badges104104 silver- badges197197 bronze badges
answered Oct 2 "19 at 15:54
include a comment |
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
Sign up or log in in
authorize up making use of Google
sign up utilizing Facebook
sign up making use of Email and Password
Post together a guest
email Required, yet never shown
Post together a guest
Required, however never shown
short article Your price Discard
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
using sudo on GUI applications
exactly how to get back sudo on Ubuntu?
Parallels top top Mac - can no much longer sudo in ~ Ubuntu
exactly how to avoid the caller's shell from being offered in sudo
just how to solve a corrupt .profile record for sudo user
i m sorry user's password go `sudo` asks for?
How can I stop a process to adjust its setuid bit ago to RUID within the process itself
Why doesn't setuid() job-related with non-root users?
Asked for sudo password only sometimes
SUDO effective for active Directory admin group member using wrong password
hot Network concerns more hot concerns
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
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.