Ticket 3427

Summary: What is the command to disable a user account from submitting jobs
Product: Slurm Reporter: UAB Research Computing <RC_LICENSES>
Component: User CommandsAssignee: Tim Wickberg <tim>
Status: RESOLVED INFOGIVEN QA Contact:
Severity: 4 - Minor Issue    
Priority: ---    
Version: 16.05.8   
Hardware: Linux   
OS: Linux   
Site: UAB Alineos Sites: ---
Atos/Eviden Sites: --- Confidential Site: ---
Coreweave sites: --- Cray Sites: ---
DS9 clusters: --- HPCnow Sites: ---
HPE Sites: --- IBM Sites: ---
NOAA SIte: --- OCF Sites: ---
Recursion Pharma Sites: --- SFW Sites: ---
SNIC sites: --- Linux Distro: ---
Machine Name: CLE Version:
Version Fixed: Target Release: ---
DevPrio: --- Emory-Cloud Sites: ---

Description UAB Research Computing 2017-01-25 10:13:58 MST
I have a user who is running jobs using the incorrect file system (i.e. NFS vs fast parallel) and need to temporarily disable their ability to submit jobs until they have confirmed that they corrected their job scripts.

In SGE I'd add the user account to the xuser_lists for the queue.

What is the procedure to do so in Slurm?
Comment 1 Tim Wickberg 2017-01-25 10:32:19 MST
There's no user-specific blocklist like xuser_lists in Slurm.

A quick way to block their jobs from running:

'sacctmgr update user tim set maxjobs=0'

They'll still be queued, but none can run until that's lifted. You could 'scancel -u tim' to clear all their jobs, and to lift the restriction run 'sacctmgr update user tim set maxjobs=-1'.
Comment 2 UAB Research Computing 2017-01-25 10:34:00 MST
Perfect, Thanks. For some reason I was convinced 'scontrol' was the command I needed.
Comment 3 Tim Wickberg 2017-01-25 10:43:43 MST
I just remembered that setting the 'maxsubmitjobs=0' limit would be even better; it'd prevent anything from being queued.

For future requests, can you please spend a few minutes consulting the documentation? While we try to answer all questions, this doesn't strictly fall under our "Level 3" support model, and take me away from resolving other issues. (https://www.schedmd.com/support.php)

cheers,
- Tim