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

Clash 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 
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.
permissions sudo root
add a comment |Â
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 
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.
permissions sudo root
1
How exactly did you mess the permissions up? Can you still usepkexecinstead ofsudoor 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 fromll /usr/bin/sudo
â WinEunuuchs2Unix
May 9 at 12:34
@WinEunuuchs2Unix I do not knowll /usr/bin/sudowhat 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
add a comment |Â
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 
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.
permissions sudo root
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 
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.
permissions sudo root
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 usepkexecinstead ofsudoor 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 fromll /usr/bin/sudo
â WinEunuuchs2Unix
May 9 at 12:34
@WinEunuuchs2Unix I do not knowll /usr/bin/sudowhat 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
add a comment |Â
1
How exactly did you mess the permissions up? Can you still usepkexecinstead ofsudoor 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 fromll /usr/bin/sudo
â WinEunuuchs2Unix
May 9 at 12:34
@WinEunuuchs2Unix I do not knowll /usr/bin/sudowhat 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
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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%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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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
How exactly did you mess the permissions up? Can you still use
pkexecinstead ofsudoor 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/sudowhat 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