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
関連するコンテンツ
- AWS公式更新しました 1年前
- AWS公式更新しました 1年前