Skip to content

adding +x permissions to bin files for rootless compatbility#4

Open
dsashidh wants to merge 2 commits into
skpark-rh:mainfrom
dsashidh:fix-executable-permissions
Open

adding +x permissions to bin files for rootless compatbility#4
dsashidh wants to merge 2 commits into
skpark-rh:mainfrom
dsashidh:fix-executable-permissions

Conversation

@dsashidh
Copy link
Copy Markdown

@dsashidh dsashidh commented Jun 3, 2026

makes sure miniconda and local bin files have +x permissions in the image so cp -a preserves them to NFS (i have another PR for the deployment files too)

Copy link
Copy Markdown
Owner

@skpark-rh skpark-rh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall the permission issue persists because the same person can be two different users. This would exacerbate the problem not solve it.

Comment thread .devcontainer/Dockerfile
Comment on lines +172 to +175
# Ensure all executables have +x permissions before ownership change
RUN find /home/devuser/miniconda/bin -type f -exec chmod +x {} + 2>/dev/null || true \
&& find /home/devuser/.local/bin -type f -exec chmod +x {} + 2>/dev/null || true

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this does anything. By default all the files that are in bin are executables.

- |
if [ ! -d /mnt/data/miniconda ]; then
cp -r --no-preserve=all /home/devuser/. /mnt/data/
cp -a /home/devuser/. /mnt/data/
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The -a in cp preserves symlink, permission, ownership, timestamps, context, links, and xattr. This is not what we want to do for agnostic file copies in the nfs.

- |
if [ ! -d /mnt/data/miniconda ]; then
cp -r --no-preserve=all /home/devuser/. /mnt/data/
cp -a /home/devuser/. /mnt/data/
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment on the -a flag.

- |
if [ ! -d /mnt/data/miniconda ]; then
cp -r --no-preserve=all /home/devuser/. /mnt/data/
cp -a /home/devuser/. /mnt/data/
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment on the -a flag.

- |
if [ ! -d /mnt/data/miniconda ]; then
cp -r --no-preserve=all /home/devuser/. /mnt/data/
cp -a /home/devuser/. /mnt/data/
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment on the -a flag.

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.

2 participants