sudo bash /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












Before anything I know that there is a similar question HERE.



When I execute:



sudo bash 


I get the following error:



/usr/bin/sudo must be owned by uid 0 and have the setuid bit set


This error Screen Shot From My Terminal



However, there is a difference in my problem that does not permit me to solve it using that solution proposed as follows:



1. Log out as the current user, then log back in as root.
2. Execute chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo
3. Log out as root, then log back in as the current user.


Because I cannot log in as root.



My question is how can I log in as root to do first step ?
i.e. 1. Log out as the current user, then log back in as root.







share|improve this question


















  • 1




    How exactly did you mess the permissions up? Can you still use pkexec instead of sudo or did you break that one too?
    – Byte Commander
    May 9 at 12:23






  • 1




    "If you do not have a root user, restart and press Esc to enter the grub menu. There select Advanced options for Ubuntu and select recovery mode. Then select root and you can find yourself in the root shell. If you get an error that the filesystem is in read only mode, do: mount -o remount,rw / " -- answer #2, comment #1 of OP's link
    – dsstorefile1
    May 9 at 12:27











  • Please update your question with the output from ll /usr/bin/sudo
    – WinEunuuchs2Unix
    May 9 at 12:34











  • @WinEunuuchs2Unix I do not know ll /usr/bin/sudo what does it mean ? could you please explain a bit more ?
    – sas
    May 9 at 14:02










  • If you type in the command it will show you the programs attributes. Then copy and paste the terminals output into your question. Don't use screen snapshot because those are hard to read. Thank you.
    – WinEunuuchs2Unix
    May 9 at 15:10














up vote
0
down vote

favorite












Before anything I know that there is a similar question HERE.



When I execute:



sudo bash 


I get the following error:



/usr/bin/sudo must be owned by uid 0 and have the setuid bit set


This error Screen Shot From My Terminal



However, there is a difference in my problem that does not permit me to solve it using that solution proposed as follows:



1. Log out as the current user, then log back in as root.
2. Execute chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo
3. Log out as root, then log back in as the current user.


Because I cannot log in as root.



My question is how can I log in as root to do first step ?
i.e. 1. Log out as the current user, then log back in as root.







share|improve this question


















  • 1




    How exactly did you mess the permissions up? Can you still use pkexec instead of sudo or did you break that one too?
    – Byte Commander
    May 9 at 12:23






  • 1




    "If you do not have a root user, restart and press Esc to enter the grub menu. There select Advanced options for Ubuntu and select recovery mode. Then select root and you can find yourself in the root shell. If you get an error that the filesystem is in read only mode, do: mount -o remount,rw / " -- answer #2, comment #1 of OP's link
    – dsstorefile1
    May 9 at 12:27











  • Please update your question with the output from ll /usr/bin/sudo
    – WinEunuuchs2Unix
    May 9 at 12:34











  • @WinEunuuchs2Unix I do not know ll /usr/bin/sudo what does it mean ? could you please explain a bit more ?
    – sas
    May 9 at 14:02










  • If you type in the command it will show you the programs attributes. Then copy and paste the terminals output into your question. Don't use screen snapshot because those are hard to read. Thank you.
    – WinEunuuchs2Unix
    May 9 at 15:10












up vote
0
down vote

favorite









up vote
0
down vote

favorite











Before anything I know that there is a similar question HERE.



When I execute:



sudo bash 


I get the following error:



/usr/bin/sudo must be owned by uid 0 and have the setuid bit set


This error Screen Shot From My Terminal



However, there is a difference in my problem that does not permit me to solve it using that solution proposed as follows:



1. Log out as the current user, then log back in as root.
2. Execute chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo
3. Log out as root, then log back in as the current user.


Because I cannot log in as root.



My question is how can I log in as root to do first step ?
i.e. 1. Log out as the current user, then log back in as root.







share|improve this question














Before anything I know that there is a similar question HERE.



When I execute:



sudo bash 


I get the following error:



/usr/bin/sudo must be owned by uid 0 and have the setuid bit set


This error Screen Shot From My Terminal



However, there is a difference in my problem that does not permit me to solve it using that solution proposed as follows:



1. Log out as the current user, then log back in as root.
2. Execute chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo
3. Log out as root, then log back in as the current user.


Because I cannot log in as root.



My question is how can I log in as root to do first step ?
i.e. 1. Log out as the current user, then log back in as root.









share|improve this question













share|improve this question




share|improve this question








edited May 9 at 12:34









Florian Diesch

62.6k16156176




62.6k16156176










asked May 9 at 12:11









sas

101




101







  • 1




    How exactly did you mess the permissions up? Can you still use pkexec instead of sudo or did you break that one too?
    – Byte Commander
    May 9 at 12:23






  • 1




    "If you do not have a root user, restart and press Esc to enter the grub menu. There select Advanced options for Ubuntu and select recovery mode. Then select root and you can find yourself in the root shell. If you get an error that the filesystem is in read only mode, do: mount -o remount,rw / " -- answer #2, comment #1 of OP's link
    – dsstorefile1
    May 9 at 12:27











  • Please update your question with the output from ll /usr/bin/sudo
    – WinEunuuchs2Unix
    May 9 at 12:34











  • @WinEunuuchs2Unix I do not know ll /usr/bin/sudo what does it mean ? could you please explain a bit more ?
    – sas
    May 9 at 14:02










  • If you type in the command it will show you the programs attributes. Then copy and paste the terminals output into your question. Don't use screen snapshot because those are hard to read. Thank you.
    – WinEunuuchs2Unix
    May 9 at 15:10












  • 1




    How exactly did you mess the permissions up? Can you still use pkexec instead of sudo or did you break that one too?
    – Byte Commander
    May 9 at 12:23






  • 1




    "If you do not have a root user, restart and press Esc to enter the grub menu. There select Advanced options for Ubuntu and select recovery mode. Then select root and you can find yourself in the root shell. If you get an error that the filesystem is in read only mode, do: mount -o remount,rw / " -- answer #2, comment #1 of OP's link
    – dsstorefile1
    May 9 at 12:27











  • Please update your question with the output from ll /usr/bin/sudo
    – WinEunuuchs2Unix
    May 9 at 12:34











  • @WinEunuuchs2Unix I do not know ll /usr/bin/sudo what does it mean ? could you please explain a bit more ?
    – sas
    May 9 at 14:02










  • If you type in the command it will show you the programs attributes. Then copy and paste the terminals output into your question. Don't use screen snapshot because those are hard to read. Thank you.
    – WinEunuuchs2Unix
    May 9 at 15:10







1




1




How exactly did you mess the permissions up? Can you still use pkexec instead of sudo or did you break that one too?
– Byte Commander
May 9 at 12:23




How exactly did you mess the permissions up? Can you still use pkexec instead of sudo or did you break that one too?
– Byte Commander
May 9 at 12:23




1




1




"If you do not have a root user, restart and press Esc to enter the grub menu. There select Advanced options for Ubuntu and select recovery mode. Then select root and you can find yourself in the root shell. If you get an error that the filesystem is in read only mode, do: mount -o remount,rw / " -- answer #2, comment #1 of OP's link
– dsstorefile1
May 9 at 12:27





"If you do not have a root user, restart and press Esc to enter the grub menu. There select Advanced options for Ubuntu and select recovery mode. Then select root and you can find yourself in the root shell. If you get an error that the filesystem is in read only mode, do: mount -o remount,rw / " -- answer #2, comment #1 of OP's link
– dsstorefile1
May 9 at 12:27













Please update your question with the output from ll /usr/bin/sudo
– WinEunuuchs2Unix
May 9 at 12:34





Please update your question with the output from ll /usr/bin/sudo
– WinEunuuchs2Unix
May 9 at 12:34













@WinEunuuchs2Unix I do not know ll /usr/bin/sudo what does it mean ? could you please explain a bit more ?
– sas
May 9 at 14:02




@WinEunuuchs2Unix I do not know ll /usr/bin/sudo what does it mean ? could you please explain a bit more ?
– sas
May 9 at 14:02












If you type in the command it will show you the programs attributes. Then copy and paste the terminals output into your question. Don't use screen snapshot because those are hard to read. Thank you.
– WinEunuuchs2Unix
May 9 at 15:10




If you type in the command it will show you the programs attributes. Then copy and paste the terminals output into your question. Don't use screen snapshot because those are hard to read. Thank you.
– WinEunuuchs2Unix
May 9 at 15:10















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1034017%2fsudo-bash-usr-bin-sudo-must-be-owned-by-uid-0-and-have-the-setuid-bit-set%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1034017%2fsudo-bash-usr-bin-sudo-must-be-owned-by-uid-0-and-have-the-setuid-bit-set%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

Trouble downloading packages list due to a “Hash sum mismatch” error

How do I move numbers in filenames, in a batch renaming operation?