Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

zwimer
Copy link

@zwimer zwimer commented Aug 14, 2025

This PR cleans up permission in dockerentry.sh in 3 ways:

  1. Fixes Bug: dockerentry.sh chmod +x's all files in config. #298 by chmod-ing directories to 750, then effectively chmod-ing files to 640, but without removing any existing executable (x) permissions. I.e. executables will remain executables (to user and group)
  2. These permissions should be set regardless of if DOCKER_NONROOT is set. This is both for consistency but also ensures consistency should a user try DOCKER_NONROOT then revert
  3. chown when DOCKER_NONROOT is not set; this is in case a user switches from using DOCKER_NONROOT then back.

@zwimer zwimer force-pushed the fix-298-permissions-error branch from d46278e to dccfba2 Compare August 14, 2025 00:08
@Forceu
Copy link
Owner

Forceu commented Aug 29, 2025

Thanks for the PR. Wouldn't that remove the executable bit from /app/gokapi?

@zwimer
Copy link
Author

zwimer commented Aug 29, 2025

From:

git checkout fix-298-permissions-error
docker build -t foo .
docker run --rm --name foo -d foo
docker exec -it foo /bin/ls -la /app

I see

total 49368
drwxr-x---    1 root     root            42 Aug 29 17:49 .
drwxr-xr-x    1 root     root            14 Aug 29 17:52 ..
-rw-r-----    1 root     root             0 Aug 29 17:41 .isdocker
-rwxr-x---    1 root     root      50544824 Aug 29 17:49 gokapi
-rwxr-x---    1 root     root           538 Aug 29 17:49 run.sh

So gokapi is user and group executable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: dockerentry.sh chmod +x's all files in config.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.