0
1
I created a newuser
on EC2 following this document AWS doc. Now I can use this user to SSH to the EC2 instance. The only issue is that every time when I need to use sudo (for example, when I do sudo yum update
), it asks for password:
[sudo] password for newuser:
I created a password for newuser
but this password does not work.
I set a password for
newuser
. I typed this password when asked, it saysnewuser is not in the sudoers file. This incident will be reported.
– Bruce – 2017-05-26T13:03:23.723Looks like you're going to gitmo! In the meantime, I've updated my answer to explain extending sudo support to a new user. It is not automatically given to users, as it's full admin and doing so would defeat most of the point of even having users. – James T Snell – 2017-05-26T16:56:46.750
Good point. I need to re-think why creating
newuser
. – Bruce – 2017-05-30T13:36:03.823