Create a New Sudo User in AWS EC2
(Ubuntu AMI)
Log in your Ec2 Instance using “ec2-user”
Log in to your server as the root user.
Use the adduser command to add a new user to your system.
Set and confirm the new user’s password at the prompt. Use
strong password to secure account
strong password to secure account
Use the usermod command to add the user to the sudo group.
By default, on Ubuntu, members of the sudo group have sudo privileges.
Test sudo access on new user account
Use the su command to switch to the new user account.
As the new user, verify that you can use sudo by prepending “sudo” to the command
that you want to run with superuser privileges.
that you want to run with superuser privileges.
A great content material as well as a great layout.Thanks for sharing this here Amazon bellen
ReplyDelete