5

EC2 instance: non ec2-user not in sudoer file?

view full story
linux-howto

http://serverfault.com – Amazon EC2-instance: I made a user 'admin' and copied ec2-user's keys with proper permission. After successful login, i tried to do sudo su for root access, it says 'admin is not in the sudoers file. This incident will be reported.' However i can do sudo su with ec2-user account and can gain root access. What is sudoer file? how does ec2-user and admin different in config wise? # useradd -m admin # cp -R /home/ec2-user/.ssh /home/admin # chown -R admin:admin /home/admin/.ssh connect by putty: login as: admin Authenticating with public key "xxx" [admin@ip-xx-xx-xx-xx ~]$ sudo su We t (HowTos)