Skip to content

Instantly share code, notes, and snippets.

@hartzell
Last active July 6, 2018 23:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hartzell/adbcce1457d53d474f792599fdf50342 to your computer and use it in GitHub Desktop.
Save hartzell/adbcce1457d53d474f792599fdf50342 to your computer and use it in GitHub Desktop.
Touch up a non-root singularity install

These steps will touch up a non-root install...

libexec_bin=$(spack location -i singularity)/libexec/singularity/bin
suid_files=(action-suid start-suid mount-suid)

for f in "${suid_files[@]}"
do
    sudo chown root:root "${libexec_bin}/${f}"
    sudo chmod 4755 "${libexec_bin}/${f}"
done

sudo chown root:root $(spack location -i singularity)/etc/singularity/singularity.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment