-
-
Notifications
You must be signed in to change notification settings - Fork 41
Closed
Description
Running git in lambda, I get /bin/sh: /opt/bin/git: Permission denied.
Using docker run to get interactive shell, I get the same error trying to run git: sh: /opt/bin/git: Permission denied.
The problem seems to be the lack of execution permission on files in /opt/bin:
-rw-rw-rw- 1 sbx_user1051 495 2480144 Dec 24 20:24 git
-rw-rw-rw- 1 sbx_user1051 495 658056 Dec 24 20:24 ssh
Granting permission using chmod +x /opt/bin/* fixes this problem.
But, ssh still doesn't work due to another error: ssh: error while loading shared libraries: /opt/lib/libfipscheck.so.1: file too short, not sure why.
I tested this on an image created and cached by AWS SAM CLI after attempting to locally invoke the lambda.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels