Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Password for ec2-user on AWS Cloud9

I am trying to run $ sudo su in the terminal of AWS Cloud9. I get prompted for the password for the ec2-user. Any ideas what this might be?

Might be worth noting that prior to coming up against this issue, when trying to yum install a package, I got 'packages excluded due to repository priority protections' so I ran yum erase yum-plugin-priorities as per https://serverfault.com/questions/312472/what-does-that-mean-packages-excluded-due-to-repository-priority-protections (I'm fairly sure I had to do that with sudo but wasn't prompted for the password).

like image 241
James Avatar asked Oct 27 '25 03:10

James


1 Answers

First you need to set your password using command

$ sudo passwd ec2-user

Then you can use the new password where ever its required

like image 66
yogesh cl Avatar answered Oct 28 '25 17:10

yogesh cl



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!