amazon web services - How do I find the password for root user in EC2 instance? -


some permissions broken on server, , have lost ability use sudo. need su , change permissions, when su, asked password. never set password root user... can find password?

most of ami's not use passwords on root user i've noticed.

your best bet detach ebs file system , mount on instance can go in , fix authorized_keys files or /etc/sudoers or whatever appropriate resolve problem. once fixed, can unmount , detach it, reattach old instance mounts / again.

see answer info how access filesystem fix things:

add keypair existing ec2 instance


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -