Here is the issue
- Created a new server with Amazon Linux 2
- Removed ssh-key from default root user (ec2-user)
- Created two new accounts with sudo access without a password
Now I got locked out of the root access in this server, anytime I run a 'sudo' command the OS is asking for a password. But during user creation I never set any password. Additionally, passwd
is asking for the current password.
Anything I can do, except start again?