Bug 1084333 - [HPC,slurm] slurmd and slurmctld start with the wrong user/group.
[HPC,slurm] slurmd and slurmctld start with the wrong user/group.
Status: RESOLVED INVALID
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other
Current
All openSUSE Factory
: P5 - None : Normal (vote)
: ---
Assigned To: E-mail List
E-mail List
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-03-07 15:26 UTC by Egbert Eich
Modified: 2018-03-07 20:23 UTC (History)
1 user (show)

See Also:
Found By: Development
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Egbert Eich 2018-03-07 15:26:11 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.
Comment 1 Christian Goll 2018-03-07 17:56:17 UTC
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.
Comment 2 Egbert Eich 2018-03-07 20:23:40 UTC
Dang, you're right. 'slumctld' changes user to drop privileges and runs perfectly fine. 'slurmd' needs to run as root.