We had to change the UID in /etc/passwd of a Slurm user "stly", and the /etc/passwd was propagated to all nodes in the cluster. However, after the UID change, the user could no longer submit batch jobs, but got an error message: sbatch: error: Batch job submission failed: Invalid account or account/partition combination specified The only way I could solve this was: sacctmgr delete user stly and then recreate his account: sacctmgr create user name=stly defaultaccount=ecsvip Questions: 1. Should Slurm be agnostic about user UIDs, or is the UID used internally through some caching? 2. Do you have a recommended procedure for modifying user UIDs (and group GIDs)?
Ole, When changing UIDs, you will also need to restart the slurmctld for the changes to take effect. Normally, when adding a user to the system the UID is filled in automatically and immediately. If the user isn't known on the system yet, there is a thread that runs every hour that fills in those UIDs when they become known, but it doesn't recognize UID changes of preexisting users. But you can simply restart the slurmctld for those changes to be recognized. Do you think it would be helpful to add this to our FAQ? Tim
(In reply to Tim Shaw from comment #1) > When changing UIDs, you will also need to restart the slurmctld for the > changes to take effect. Normally, when adding a user to the system the UID > is filled in automatically and immediately. If the user isn't known on the > system yet, there is a thread that runs every hour that fills in those UIDs > when they become known, but it doesn't recognize UID changes of preexisting > users. But you can simply restart the slurmctld for those changes to be > recognized. Thanks for explaining the task recognizing user UIDs. It isn't obvious from any of the man-pages that UIDs matter (except that they must be uniform across the clusters). > Do you think it would be helpful to add this to our FAQ? Absolutely! It's one of those rather rare tasks which shouldn't clutter the man-pages, so the FAQ would seem the logical place to explain what to do after modifying a user's UID.
Ole, I've added an entry for this and here's the commit id: 40d43ce2372f27 It will be posted to our online FAQ soon. I'm resolving this ticket. Let me know if you have any further questions. Regards. Tim