sudo must be owned by uid 0 and have the setuid bit set
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I have changed my ubuntu super password by recovery mode
after that i can't run my sudo command in normal user
i have attempted to crack my previous password in Recovery mode
i followed this link to crack my password
>>>$sudo
---In global mode throws me an below error
sudo: /usr/local/bin/sudo must be owned by uid 0 and have the setuid bit set
>>$ ls -l sudo
--> permissions
-r-sr-xr-x 1 root root 136808 May 29 2017 sudo
/usr/local/bin$ ./sudo
---> i need this /usr/local/bin
./sudo
not working
also throw the below error
sudo: ./sudo must be owned by uid 0 and have the setuid bit set
/usr/bin$
./sudo
--> working fine
usage: sudo -h | -K | -k | -V
My question is
I need to Access my sudo comand from the terminal from anywhere i need to run
Any help will be appreciated
ubuntu sudo setuid
 |Â
show 1 more comment
up vote
0
down vote
favorite
I have changed my ubuntu super password by recovery mode
after that i can't run my sudo command in normal user
i have attempted to crack my previous password in Recovery mode
i followed this link to crack my password
>>>$sudo
---In global mode throws me an below error
sudo: /usr/local/bin/sudo must be owned by uid 0 and have the setuid bit set
>>$ ls -l sudo
--> permissions
-r-sr-xr-x 1 root root 136808 May 29 2017 sudo
/usr/local/bin$ ./sudo
---> i need this /usr/local/bin
./sudo
not working
also throw the below error
sudo: ./sudo must be owned by uid 0 and have the setuid bit set
/usr/bin$
./sudo
--> working fine
usage: sudo -h | -K | -k | -V
My question is
I need to Access my sudo comand from the terminal from anywhere i need to run
Any help will be appreciated
ubuntu sudo setuid
1
Please edit your question add the full output ofls -l /usr/local/bin/sudo
â Andy Dalton
Jan 23 at 15:53
i have updated above question withls -l sudo
outupt @AndyDalton
â muthukumar
Jan 23 at 16:02
1
Can you add the output ofwhich sudo
as well
â CyberJacob
Jan 23 at 16:04
4
Why do you even have a/usr/local/bin/sudo
?
â steeldriver
Jan 23 at 16:04
/usr/local/bin/sudo
yes i have and that also throwing the set uid error
â muthukumar
Jan 23 at 16:10
 |Â
show 1 more comment
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have changed my ubuntu super password by recovery mode
after that i can't run my sudo command in normal user
i have attempted to crack my previous password in Recovery mode
i followed this link to crack my password
>>>$sudo
---In global mode throws me an below error
sudo: /usr/local/bin/sudo must be owned by uid 0 and have the setuid bit set
>>$ ls -l sudo
--> permissions
-r-sr-xr-x 1 root root 136808 May 29 2017 sudo
/usr/local/bin$ ./sudo
---> i need this /usr/local/bin
./sudo
not working
also throw the below error
sudo: ./sudo must be owned by uid 0 and have the setuid bit set
/usr/bin$
./sudo
--> working fine
usage: sudo -h | -K | -k | -V
My question is
I need to Access my sudo comand from the terminal from anywhere i need to run
Any help will be appreciated
ubuntu sudo setuid
I have changed my ubuntu super password by recovery mode
after that i can't run my sudo command in normal user
i have attempted to crack my previous password in Recovery mode
i followed this link to crack my password
>>>$sudo
---In global mode throws me an below error
sudo: /usr/local/bin/sudo must be owned by uid 0 and have the setuid bit set
>>$ ls -l sudo
--> permissions
-r-sr-xr-x 1 root root 136808 May 29 2017 sudo
/usr/local/bin$ ./sudo
---> i need this /usr/local/bin
./sudo
not working
also throw the below error
sudo: ./sudo must be owned by uid 0 and have the setuid bit set
/usr/bin$
./sudo
--> working fine
usage: sudo -h | -K | -k | -V
My question is
I need to Access my sudo comand from the terminal from anywhere i need to run
Any help will be appreciated
ubuntu sudo setuid
edited Jan 23 at 16:09
asked Jan 23 at 15:52
muthukumar
10315
10315
1
Please edit your question add the full output ofls -l /usr/local/bin/sudo
â Andy Dalton
Jan 23 at 15:53
i have updated above question withls -l sudo
outupt @AndyDalton
â muthukumar
Jan 23 at 16:02
1
Can you add the output ofwhich sudo
as well
â CyberJacob
Jan 23 at 16:04
4
Why do you even have a/usr/local/bin/sudo
?
â steeldriver
Jan 23 at 16:04
/usr/local/bin/sudo
yes i have and that also throwing the set uid error
â muthukumar
Jan 23 at 16:10
 |Â
show 1 more comment
1
Please edit your question add the full output ofls -l /usr/local/bin/sudo
â Andy Dalton
Jan 23 at 15:53
i have updated above question withls -l sudo
outupt @AndyDalton
â muthukumar
Jan 23 at 16:02
1
Can you add the output ofwhich sudo
as well
â CyberJacob
Jan 23 at 16:04
4
Why do you even have a/usr/local/bin/sudo
?
â steeldriver
Jan 23 at 16:04
/usr/local/bin/sudo
yes i have and that also throwing the set uid error
â muthukumar
Jan 23 at 16:10
1
1
Please edit your question add the full output of
ls -l /usr/local/bin/sudo
â Andy Dalton
Jan 23 at 15:53
Please edit your question add the full output of
ls -l /usr/local/bin/sudo
â Andy Dalton
Jan 23 at 15:53
i have updated above question with
ls -l sudo
outupt @AndyDaltonâ muthukumar
Jan 23 at 16:02
i have updated above question with
ls -l sudo
outupt @AndyDaltonâ muthukumar
Jan 23 at 16:02
1
1
Can you add the output of
which sudo
as wellâ CyberJacob
Jan 23 at 16:04
Can you add the output of
which sudo
as wellâ CyberJacob
Jan 23 at 16:04
4
4
Why do you even have a
/usr/local/bin/sudo
?â steeldriver
Jan 23 at 16:04
Why do you even have a
/usr/local/bin/sudo
?â steeldriver
Jan 23 at 16:04
/usr/local/bin/sudo
yes i have and that also throwing the set uid errorâ muthukumar
Jan 23 at 16:10
/usr/local/bin/sudo
yes i have and that also throwing the set uid errorâ muthukumar
Jan 23 at 16:10
 |Â
show 1 more comment
1 Answer
1
active
oldest
votes
up vote
3
down vote
accepted
You shouldnâÂÂt have a /usr/local/bin/sudo
, thatâÂÂs whatâÂÂs breaking things (not the password change). Move it out of the way:
/usr/bin/sudo mv /usr/local/bin/sudo,2
and then tell your shell about it:
hash -r
That will restore the sudo
functionality youâÂÂre used to.
now it throws me an error -bash:/usr/local/bin/sudo:
No such file or directory
â muthukumar
Jan 23 at 16:13
2
Did you runhash -r
? Do you have an alias set?
â Stephen Kitt
Jan 23 at 16:14
2
What is yourPATH
?
â DopeGhoti
Jan 23 at 16:16
yes i have runhash -r
--/usr/bin/sudo
--> working properly with sudo command
â muthukumar
Jan 23 at 16:16
what doeswhich sudo
show?
â mik
Jan 23 at 22:16
 |Â
show 5 more comments
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
accepted
You shouldnâÂÂt have a /usr/local/bin/sudo
, thatâÂÂs whatâÂÂs breaking things (not the password change). Move it out of the way:
/usr/bin/sudo mv /usr/local/bin/sudo,2
and then tell your shell about it:
hash -r
That will restore the sudo
functionality youâÂÂre used to.
now it throws me an error -bash:/usr/local/bin/sudo:
No such file or directory
â muthukumar
Jan 23 at 16:13
2
Did you runhash -r
? Do you have an alias set?
â Stephen Kitt
Jan 23 at 16:14
2
What is yourPATH
?
â DopeGhoti
Jan 23 at 16:16
yes i have runhash -r
--/usr/bin/sudo
--> working properly with sudo command
â muthukumar
Jan 23 at 16:16
what doeswhich sudo
show?
â mik
Jan 23 at 22:16
 |Â
show 5 more comments
up vote
3
down vote
accepted
You shouldnâÂÂt have a /usr/local/bin/sudo
, thatâÂÂs whatâÂÂs breaking things (not the password change). Move it out of the way:
/usr/bin/sudo mv /usr/local/bin/sudo,2
and then tell your shell about it:
hash -r
That will restore the sudo
functionality youâÂÂre used to.
now it throws me an error -bash:/usr/local/bin/sudo:
No such file or directory
â muthukumar
Jan 23 at 16:13
2
Did you runhash -r
? Do you have an alias set?
â Stephen Kitt
Jan 23 at 16:14
2
What is yourPATH
?
â DopeGhoti
Jan 23 at 16:16
yes i have runhash -r
--/usr/bin/sudo
--> working properly with sudo command
â muthukumar
Jan 23 at 16:16
what doeswhich sudo
show?
â mik
Jan 23 at 22:16
 |Â
show 5 more comments
up vote
3
down vote
accepted
up vote
3
down vote
accepted
You shouldnâÂÂt have a /usr/local/bin/sudo
, thatâÂÂs whatâÂÂs breaking things (not the password change). Move it out of the way:
/usr/bin/sudo mv /usr/local/bin/sudo,2
and then tell your shell about it:
hash -r
That will restore the sudo
functionality youâÂÂre used to.
You shouldnâÂÂt have a /usr/local/bin/sudo
, thatâÂÂs whatâÂÂs breaking things (not the password change). Move it out of the way:
/usr/bin/sudo mv /usr/local/bin/sudo,2
and then tell your shell about it:
hash -r
That will restore the sudo
functionality youâÂÂre used to.
answered Jan 23 at 16:07
Stephen Kitt
142k22308371
142k22308371
now it throws me an error -bash:/usr/local/bin/sudo:
No such file or directory
â muthukumar
Jan 23 at 16:13
2
Did you runhash -r
? Do you have an alias set?
â Stephen Kitt
Jan 23 at 16:14
2
What is yourPATH
?
â DopeGhoti
Jan 23 at 16:16
yes i have runhash -r
--/usr/bin/sudo
--> working properly with sudo command
â muthukumar
Jan 23 at 16:16
what doeswhich sudo
show?
â mik
Jan 23 at 22:16
 |Â
show 5 more comments
now it throws me an error -bash:/usr/local/bin/sudo:
No such file or directory
â muthukumar
Jan 23 at 16:13
2
Did you runhash -r
? Do you have an alias set?
â Stephen Kitt
Jan 23 at 16:14
2
What is yourPATH
?
â DopeGhoti
Jan 23 at 16:16
yes i have runhash -r
--/usr/bin/sudo
--> working properly with sudo command
â muthukumar
Jan 23 at 16:16
what doeswhich sudo
show?
â mik
Jan 23 at 22:16
now it throws me an error -bash:
/usr/local/bin/sudo:
No such file or directoryâ muthukumar
Jan 23 at 16:13
now it throws me an error -bash:
/usr/local/bin/sudo:
No such file or directoryâ muthukumar
Jan 23 at 16:13
2
2
Did you run
hash -r
? Do you have an alias set?â Stephen Kitt
Jan 23 at 16:14
Did you run
hash -r
? Do you have an alias set?â Stephen Kitt
Jan 23 at 16:14
2
2
What is your
PATH
?â DopeGhoti
Jan 23 at 16:16
What is your
PATH
?â DopeGhoti
Jan 23 at 16:16
yes i have run
hash -r
-- /usr/bin/sudo
--> working properly with sudo commandâ muthukumar
Jan 23 at 16:16
yes i have run
hash -r
-- /usr/bin/sudo
--> working properly with sudo commandâ muthukumar
Jan 23 at 16:16
what does
which sudo
show?â mik
Jan 23 at 22:16
what does
which sudo
show?â mik
Jan 23 at 22:16
 |Â
show 5 more comments
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f419122%2fsudo-must-be-owned-by-uid-0-and-have-the-setuid-bit-set%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
Please edit your question add the full output of
ls -l /usr/local/bin/sudo
â Andy Dalton
Jan 23 at 15:53
i have updated above question with
ls -l sudo
outupt @AndyDaltonâ muthukumar
Jan 23 at 16:02
1
Can you add the output of
which sudo
as wellâ CyberJacob
Jan 23 at 16:04
4
Why do you even have a
/usr/local/bin/sudo
?â steeldriver
Jan 23 at 16:04
/usr/local/bin/sudo
yes i have and that also throwing the set uid errorâ muthukumar
Jan 23 at 16:10