Allow other users to read the /opt/teku dir when using docker#6740
Closed
skylenet wants to merge 1 commit into
Closed
Allow other users to read the /opt/teku dir when using docker#6740skylenet wants to merge 1 commit into
skylenet wants to merge 1 commit into
Conversation
rolfyone
added a commit
to rolfyone/teku
that referenced
this pull request
Jan 27, 2023
Member
|
Recreated at #6743 to circumvent CircleCI permission issues. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Description
The problem is that if we try to run the teku container with any other user that has a differen uid than
1000, we won't be able to execute the teku binary due to the permissions of the working dir (/opt/teku) being too strict 0770. I'm changing the permissions to 0775 so that other users can also read the directory and execute the teku binary.Example on how this fails currently with other users than 1000
$ docker pull consensys/teku $ docker run --rm -it --entrypoint ls --user=1000 consensys/teku LICENSE bin lib licenses teku.autocomplete.sh $ docker run --rm -it --entrypoint ls --user=1003 consensys/teku ls: cannot open directory '.': Permission deniedFixed Issue(s)
Documentation
doc-change-requiredlabel to this PR if updates are required.Changelog