1 Answer
- Newest
- Most votes
- Most comments
3
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
Relevant content
- Accepted Answerasked 7 months ago
- asked 5 months ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a year ago