For the complete documentation index, see llms.txt. This page is also available as Markdown.

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