diff --git a/overlays/sbin/slurmrestd.wrapper b/overlays/sbin/slurmrestd.wrapper index df54caa..8fcc7ba 100755 --- a/overlays/sbin/slurmrestd.wrapper +++ b/overlays/sbin/slurmrestd.wrapper @@ -25,8 +25,8 @@ fi # Export invalid Slurm JWT token to activate JWT authentication in slurmrestd. # See for more details: https://slurm.schedmd.com/rest.html#jwt export SLURM_JWT= -# Drop to _daemon_ because slurmrestd cannot run as either root or SlurmUser. -"${SNAP}"/usr/bin/setpriv --clear-groups --reuid _daemon_ --regid _daemon_ -- \ +# Drop to snap_daemon because slurmrestd cannot run as either root or SlurmUser. +"${SNAP}"/usr/bin/setpriv --clear-groups --reuid snap_daemon --regid snap_daemon -- \ "${SNAP}"/sbin/slurmrestd \ -f "${SNAP_COMMON}/etc/slurm/slurm.conf" \ --max-connections "${SLURMRESTD_MAX_CONNECTIONS}" \ diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index e771f9c..f4e73bc 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -40,7 +40,7 @@ environment: PATH: $SNAP/usr/sbin:$SNAP/usr/bin:$SNAP/sbin:$SNAP/bin:$SNAP/usr/local/bin:$SNAP/usr/local/sbin:$PATH system-usernames: - _daemon_: shared + snap_daemon: shared apps: logrotate: