How can I find the password for root user in EC2 instance?

0 votes
I have never set a password for root user and its asking for a password, where can I find the password?
Mar 12 in AWS by Shalil
13 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

Most of the AMI's do not use passwords on their root user that I've noticed. The best you can do is to detach your EBS file system and mount it on another instance so that you can go in and fix the authorized_keys files or /etc/users or whatever is appropriate to resolve your problem. Once it is fixed, you can unmount and detach it, then reattach it to your old instance so that it mounts as / again.

answered Mar 12 by ranjan

Related Questions In AWS

0 votes
1 answer

How can I find out the instance id of an ec2 instance from within the ec2 instance?

On Amazon Linux AMIs you can do: $ ...READ MORE

answered Sep 10, 2018 in AWS by Archana
• 3,770 points
14 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How do i manage firewall settings for my instance in Lightsail?

Yes. You can control the data traffic ...READ MORE

answered Sep 12, 2018 in AWS by Archana
• 3,770 points
66 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Find region from within an EC2 instance

There is one more way of achieving ...READ MORE

answered Mar 12 in AWS by trisha
10 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.