Removing EC2 user from sudo list

  1. Check the: /etc/sudoers.d/cloud-init file

  2. If the ec2-user default user is there --> delete the file.

Last updated