1 個回答
- 最新
- 最多得票
- 最多評論
2
Why are you using -S
option for sudo? "read password from standard input"
Just run sudo -E <command>
.
The sudo command that you are using will not be running as ggc_user, it will run as root.
I do not understand how your desire "deploy a component that can copy" relates to the problem that you are having. Based on the command that you provided, you haven't yet even installed Greengrass, is that right? So really your desire right now is just to install and provision Greengrass I believe.
To run a component as root, do not use sudo. Update your component recipe to specify RequiresPrivilege
. https://docs.aws.amazon.com/greengrass/v2/developerguide/component-recipe-reference.html
For example
Lifecycle:
Run:
Script: cp a_to_b b
RequiresPrivilege: true
相關內容
- 已提問 10 個月前
- AWS 官方已更新 1 年前
- AWS 官方已更新 1 年前
- AWS 官方已更新 1 年前
- AWS 官方已更新 3 年前