0
I created a user in aws ec2 with:
ubuntu$ sudo adduser --disabled-password user1
per instructions from:
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/managing-users.html
After I ssh in as user1 (by first creating .ssh, adding auth keys, etc.), I try to su to root (I do know root's password) with:
user1$ su -
I get prompted with:
[sudo] password for user1:
I tried hitting just the enter key, since I created user1 with --disabled-password in the first place, but I get Authentication error.
In every other Linux/Unix system I've been on and having root's password, I'm always able to switch to root user with just 'su' or 'su -' from any other user and never had to enter the password from the account I'm switching from.
Any way to recover from this? Is there some default password that gets assigned for reason when
--disabled-password option is used with the adduser command?
I can no longer ssh into 'ubuntu' account either for some reason.
Also, I did create user1 via the AMI control panel and downloaded Access Key and Secret Access Key Id's. Are these any help here? Thanks.