Ticket 3427 - What is the command to disable a user account from submitting jobs
Summary: What is the command to disable a user account from submitting jobs
Status: RESOLVED INFOGIVEN
Alias: None
Product: Slurm
Classification: Unclassified
Component: User Commands (show other tickets)
Version: 16.05.8
Hardware: Linux Linux
: 4 - Minor Issue
Assignee: Tim Wickberg
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2017-01-25 10:13 MST by UAB Research Computing
Modified: 2017-01-25 10:43 MST (History)
0 users

See Also:
Site: UAB
Slinky Site: ---
Alineos Sites: ---
Atos/Eviden Sites: ---
Confidential Site: ---
Coreweave sites: ---
Cray Sites: ---
DS9 clusters: ---
Google sites: ---
HPCnow Sites: ---
HPE Sites: ---
IBM Sites: ---
NOAA SIte: ---
NoveTech Sites: ---
Nvidia HWinf-CS Sites: ---
OCF Sites: ---
Recursion Pharma Sites: ---
SFW Sites: ---
SNIC sites: ---
Tzag Elita Sites: ---
Linux Distro: ---
Machine Name:
CLE Version:
Version Fixed:
Target Release: ---
DevPrio: ---
Emory-Cloud Sites: ---


Attachments

Note You need to log in before you can comment on or make changes to this ticket.
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