'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).
Solution 1:[1]
First you need to set your password using command
$ sudo passwd ec2-user
Then you can use the new password where ever its required
Solution 2:[2]
I ran into the same problem which trying to install homebrew
on my ec2@Cloud9 Env.
When requested for password, I didn't place any let the program wait for a while after which I could see the package homebrew
got installed.
Solution 3:[3]
In the cloud9 (terminal) you have to change the users password with:
$ sudo passwd ec2-user
Changing password for user ec2-user.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | yogesh cl |
Solution 2 | Ravikumar Swaminathan |
Solution 3 | Felix |