So useradd is adding a Linux user, which sacctmgr creates a Slurm user.
What we do is that we run AD for our Linux user managment. We then in
our job submit lua script look to see if the user has an account in
slurm and if they don't we create it.
Another way would be to make all your Linux users and then map that in
to Slurm using sacctmgr.
It really depends on if your Slurm users are a subset of your regular
users or not.
-Paul Edmon-
On 9/12/2018 12:21 PM, Andre Torres wrote:
Hi all,
I’m new to slurm and I’m confused regarding user creation. I have an
installation with 1 login node and 5 compute nodes. If I create a user
across all the nodes with the same uid and gid I can execute jobs but
I can’t understand the difference between user creation with
“/useradd”/ command and the “/sacctmgr”/ command
sacctmgr create account name=test
sacctmgr create user jdoe account=test
Also, is there anyway of creating a user at login node and replicate
to the compute nodes ? What is the best practice for user creation ?
Thanks in advance