Fixing A Broken Sudoers File on an Amazon’s EC2
You have to edit /etc/sudoers file but you can no longer gain root access use sudo
"parse error in /etc/sudoers"
Requirements.
- EC2 A - (in order to fix)
- EC2 B - (B is Instance to attach EC2 A master volume)
How to
- stop EC2 A
- AWS console -Elastic Block Store-volumes detach EC2 A root volume
- attach EC2 A root volume to EC2 B device /dev/sdj
- sudo mkdir /vol-a
- mount /dev/xvdj1 /vol-a
Written by Uzys Jung
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Sudo
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#