1 回答
- 最新
- 投票最多
- 评论最多
0
sample code
sudo -u ec2-user whoami
I referred to the following sites
https://stackoverflow.com/questions/57443700/running-command-in-userdata-as-a-not-root-user https://zenn.dev/nnnto/articles/df29c8d03e1c45
已回答 2 年前
相关内容
- AWS 官方已更新 2 年前
- AWS 官方已更新 3 年前