Skip to content

Conversation

@aelkiss
Copy link
Member

@aelkiss aelkiss commented Oct 17, 2025

  • Sometimes we run as users other than 1000:1000 e.g. when we need to write to specific NFS directories
  • This user still needs to be able to read the homedir
  • useradd was creating the directory with permissions 700
  • elsewhere setting WORKDIR first creates the directory
  • however that ends up with the directory being owned by root, which won't work since npm needs to write there when it does its install
  • so... rather than relying on WORKDIR to make the directory (but with different wrong permissions) we just chmod to to make sure we end up with what we want.

* Sometimes we run as users other than 1000:1000 e.g. when we need to
  write to specific NFS directories
* This user still needs to be able to read the homedir
* useradd was creating the directory with permissions 700
* elsewhere setting WORKDIR first creates the directory
* however that ends up with the directory being owned by root, which
  won't work since npm needs to write there when it does its install
* so... rather than relying on WORKDIR to make the directory (but with
  different wrong permissions) we just chmod to to make sure we end up
  with what we want.
@aelkiss aelkiss requested a review from moseshll October 17, 2025 17:02
@coveralls
Copy link

Coverage Status

coverage: 97.636%. remained the same
when pulling 78e1b48 on ETT-751-homedir-perms
into 3aff3a0 on main.

Copy link
Collaborator

@moseshll moseshll left a comment

Choose a reason for hiding this comment

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

Built and run locally, permissions are good compared to doing same on main branch. APPROVE

@aelkiss aelkiss merged commit 4ef9520 into main Oct 17, 2025
2 checks passed
@moseshll moseshll deleted the ETT-751-homedir-perms branch October 20, 2025 13:30
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.

4 participants