Bugzilla – Bug 1084333
[HPC,slurm] slurmd and slurmctld start with the wrong user/group.
Last modified: 2018-03-07 20:23:40 UTC
slurmd and slurmctld should start as user 'slurm', group 'slurm', however they start as root,root.
Also the PID directory /var/run/slurm has the wrong owner/group.
slurmctld runs under user slurm. This is configured via slurm.conf and not via the service file.
I don't think that it is possible to run slurmd as slurm user, as this process has to fork and then change the uid/gid to the user who started the simulation. Also this process has to created and modify cgrules, which is also only possible as root.
Dang, you're right. 'slumctld' changes user to drop privileges and runs perfectly fine. 'slurmd' needs to run as root.