2개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
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
답변함 2년 전
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
답변함 일 년 전
관련 콘텐츠
- AWS 공식업데이트됨 2년 전