2 Respostas
- Mais recentes
- Mais votos
- Mais comentários
0
From aws console > instance > connect user: change to "root" > connect
chown root:root /etc/sudo.conf chown root:root /etc/sudoers chown -R root:root /etc/sudoers.d
Now you should be able to run sudo
command using ec2-user
account
respondido há 2 anos
0
From aws console > instance > connect user: change to "root" > connect
This ^ is inaccessible for me.
Alternative method:
https://aws.amazon.com/premiumsupport/knowledge-center/ec2-sudo-commands/ - I used the "Debian-based" script, but their commands are incomplete.
I simply added (to the bottom) the commands that @kenng provided, and that worked for those specific files & folders. However, in my case I also needed to add:
chown root:root /usr/libexec/sudo
chown -R root:root /usr/libexec/sudo/sudoers.so
respondido há um ano
Conteúdo relevante
- AWS OFICIALAtualizada há 2 anos