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 年前
相關內容
- 已提問 1 年前
- AWS 官方已更新 3 年前