I need to set a password for root on EC2 AMI Linux. I have tried with
passwd root but if I log in with
ec2-user and run
sudo su, I get a root bash without asking for a password.
The root password will be prompted when using
Check the settings in