2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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
répondu il y a 2 ans
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
répondu il y a un an
Contenus pertinents
- demandé il y a 2 mois
- demandé il y a un an
- demandé il y a 9 mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans