Hi Matheus,

On Fri, Jul 28, 2017 at 05:02:14AM -0600, Matheus Alves Diniz wrote:
> We are trying to use slurm in our uni lab but we can't quite understand
> slurmUser behavior.

The SlurmUser is "The name of the user that the slurmctld daemon
executes as.". slurmctld is the central management daemon of Slurm. It
monitors all other Slurm daemons and resources, accepts jobs, and
allocates resources to those jobs. It usually runs as user slurm.

> For instance:
> If I run srun while I'm logged in as the user 'matheusdiniz' (srun -n1 id
> -a), then I would expect something like this:
> 
> uid=80000001637(matheusdiniz) gid=80000000253(domain user)
> groups=80000000253(domain user),1001(slurm)
> 
> But this is what I get:
> uid=1001(slurm) gid=1001(slurm) groups=1001(slurm), 27(sudo), docker(999)

The jobs on the computing nodes are executed by the slurmd daemon on the
behalf of the user, therefore this daemon usually run as root.
Maybe you have:

SlurmdUser=slurm

in your slurm.conf whereas you should have:

SlurmdUser=root

The difference is in the d after the word Slurm.
Best regards
-- 
Gennaro Oliva

Reply via email to