Corrupt sudoers files ubuntu 18.04

Clash Royale CLAN TAG#URR8PPP up vote
0
down vote
favorite
I installed ubuntu 18.04 on an AWS instance, and accessed it via a putty session as ubuntu (using the AWS generated key).
I wanted to allow password based login, and I modified the ssh_login and sshd_login to allow password based authentication.
Then I screwed up, and manually edited the /etc/sudoers files
sudo vi sudoers
and saved the file. I made a syntax error in sudoers. I am now stuck.
Yes, I should have used pkexec visudo, but I did not. Any idea how to fix this? This is a remote system, so I cannot reboot in debug mode, or use a USB to reboot.
sudo
add a comment |Â
up vote
0
down vote
favorite
I installed ubuntu 18.04 on an AWS instance, and accessed it via a putty session as ubuntu (using the AWS generated key).
I wanted to allow password based login, and I modified the ssh_login and sshd_login to allow password based authentication.
Then I screwed up, and manually edited the /etc/sudoers files
sudo vi sudoers
and saved the file. I made a syntax error in sudoers. I am now stuck.
Yes, I should have used pkexec visudo, but I did not. Any idea how to fix this? This is a remote system, so I cannot reboot in debug mode, or use a USB to reboot.
sudo
These instructions might enable you to mount and edit/etc/sudoersin another instance. I'm a bit rushed, so I didn't verify that it can do that.
â Chai T. Rex
May 24 at 23:06
Yes, this will work, but this is the only disk, and I freeze the instance, I will not be able to "re-attach" it, nothing to attach it to
â EastsideDeveloper
May 24 at 23:08
"I should have used pkexec visudo" ... and you still can.
â muru
May 25 at 1:56
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I installed ubuntu 18.04 on an AWS instance, and accessed it via a putty session as ubuntu (using the AWS generated key).
I wanted to allow password based login, and I modified the ssh_login and sshd_login to allow password based authentication.
Then I screwed up, and manually edited the /etc/sudoers files
sudo vi sudoers
and saved the file. I made a syntax error in sudoers. I am now stuck.
Yes, I should have used pkexec visudo, but I did not. Any idea how to fix this? This is a remote system, so I cannot reboot in debug mode, or use a USB to reboot.
sudo
I installed ubuntu 18.04 on an AWS instance, and accessed it via a putty session as ubuntu (using the AWS generated key).
I wanted to allow password based login, and I modified the ssh_login and sshd_login to allow password based authentication.
Then I screwed up, and manually edited the /etc/sudoers files
sudo vi sudoers
and saved the file. I made a syntax error in sudoers. I am now stuck.
Yes, I should have used pkexec visudo, but I did not. Any idea how to fix this? This is a remote system, so I cannot reboot in debug mode, or use a USB to reboot.
sudo
asked May 24 at 23:01
EastsideDeveloper
1279
1279
These instructions might enable you to mount and edit/etc/sudoersin another instance. I'm a bit rushed, so I didn't verify that it can do that.
â Chai T. Rex
May 24 at 23:06
Yes, this will work, but this is the only disk, and I freeze the instance, I will not be able to "re-attach" it, nothing to attach it to
â EastsideDeveloper
May 24 at 23:08
"I should have used pkexec visudo" ... and you still can.
â muru
May 25 at 1:56
add a comment |Â
These instructions might enable you to mount and edit/etc/sudoersin another instance. I'm a bit rushed, so I didn't verify that it can do that.
â Chai T. Rex
May 24 at 23:06
Yes, this will work, but this is the only disk, and I freeze the instance, I will not be able to "re-attach" it, nothing to attach it to
â EastsideDeveloper
May 24 at 23:08
"I should have used pkexec visudo" ... and you still can.
â muru
May 25 at 1:56
These instructions might enable you to mount and edit
/etc/sudoers in another instance. I'm a bit rushed, so I didn't verify that it can do that.â Chai T. Rex
May 24 at 23:06
These instructions might enable you to mount and edit
/etc/sudoers in another instance. I'm a bit rushed, so I didn't verify that it can do that.â Chai T. Rex
May 24 at 23:06
Yes, this will work, but this is the only disk, and I freeze the instance, I will not be able to "re-attach" it, nothing to attach it to
â EastsideDeveloper
May 24 at 23:08
Yes, this will work, but this is the only disk, and I freeze the instance, I will not be able to "re-attach" it, nothing to attach it to
â EastsideDeveloper
May 24 at 23:08
"I should have used pkexec visudo" ... and you still can.
â muru
May 25 at 1:56
"I should have used pkexec visudo" ... and you still can.
â muru
May 25 at 1:56
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%2f1040014%2fcorrupt-sudoers-files-ubuntu-18-04%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
These instructions might enable you to mount and edit
/etc/sudoersin another instance. I'm a bit rushed, so I didn't verify that it can do that.â Chai T. Rex
May 24 at 23:06
Yes, this will work, but this is the only disk, and I freeze the instance, I will not be able to "re-attach" it, nothing to attach it to
â EastsideDeveloper
May 24 at 23:08
"I should have used pkexec visudo" ... and you still can.
â muru
May 25 at 1:56