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

testing - Detect whether test has failed within fixture -

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

android - Create single AAR file from multiple modules using Gradle -