3 Answers
- Newest
- Most votes
- Most comments
0
Hi, I tried Greengrass v2 on cloud 9 and here's what worked for me: I made sure that my etc/sudoers file had root with ALL:ALL permissions, as it says in the requirements: https://docs.aws.amazon.com/greengrass/v2/developerguide/setting-up.html#greengrass-v2-requirements . I installed greengrass in the root directory so as to not have permissions issues with ec2-user directory. I changed the permissions on the greengrass folder to chmod 755, because I saw in a github commit that they needed to be 755 instead of what they are now. Then it worked for me, running on the greengrass core.
answered 3 years ago
0
Hi rakibk,
Thanks for using Greengrass!
I have a few questions about your setup.
- Did you specify
--component-default-user ggc_user:ggc_group
in the installer command? Did you change the posix user of the HelloWorld component? - Can you check the permission of file
/greengrass/v2/packages/artifacts/com.example.HelloWorld/1.0.0/hello_world.py
? - Are you able to run
sudo -u ggc_user echo hello
on the Cloud9 instance?
answered 3 years ago
0
Hello!
- Yes I put that exact command as stated in the tutorial process. I did not change the ggc_user:ggc_group
- This the permissions I get for the file that you specified:
-rwxr-xr-- 1 ggc_user ggc_group 277 Dec 18 20:16 hello_world.py
- Yes, it outputs 'hello' without issue
answered 3 years ago
Relevant content
- Accepted Answerasked 7 years ago
- Accepted Answerasked 2 years ago
- Accepted Answerasked 2 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a year ago