You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Later on, temporary stage directories were removed here #12072 and now normal stage directories are stuck with hardcoded 700 file permissions.
This is overly restrictive and an issue if one wants to inspect someone else's stage directory (e.g., to look at the build log). Specifically, we use jenkins to build spack packages nightly. When they fail, the build logs are only accessible to the jenkins user.
Currently, the spack stages directory & file permissions are set to
700
. I believe this is only due to historical reasons.Basically, this behavior was added here be7c5f6#diff-ef561cde79864134a9c7c4fd5746f04535ebcf460065d212ba2d5d07986b9e93. I can only assume that someone noticed that the file permissions for temporary files are
700
by default and so ported this behavior also for normal stage directories.Later on, temporary stage directories were removed here #12072 and now normal stage directories are stuck with hardcoded
700
file permissions.This is overly restrictive and an issue if one wants to inspect someone else's stage directory (e.g., to look at the build log). Specifically, we use jenkins to build spack packages nightly. When they fail, the build logs are only accessible to the jenkins user.
Permissions of the install directories are configurable (https://spack.readthedocs.io/en/latest/build_settings.html#package-permissions) whereas stage directories have hardcoded permissions:
spack/lib/spack/spack/stage.py
Lines 601 to 614 in af9bf81
I think at least group members should get read permissions. Possibly this should also be configurable.
The text was updated successfully, but these errors were encountered: