> For the complete documentation index, see [llms.txt](https://docs.arkannis.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.arkannis.net/cloud/aws/ec2/removing-ec2-user-from-sudo-list.md).

# Removing EC2 user from sudo list

1. Check the: <mark style="color:green;">`/etc/sudoers.d/cloud-init`</mark> file
2. If the <mark style="color:green;">`ec2-user default user`</mark> is there --> delete the file.
