AWS-从sudo列表中删除EC2-user


16

我正在运行生产级Amazon ec2实例,并且想对所有用户关闭root特权。通常,当一个人以ec2-user身份登录到该实例时,ec2-user会立即获得sudo特权,为了确保安全性,我试图取消该特权。

我能够为root用户设置新密码,然后进入/ etc / sudoers尝试从sudo特权中删除ec2-user,但是该用户甚至没有在文件中列出。有人知道如何在运行默认Linux安装的Amazon ec2实例上从sudo特权中删除ec2-user吗?

Answers:


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.