My slurm.conf file is as follows:

ClusterName=hpc01
SlurmctldHost=node196
SlurmctldPort=6817
SlurmdPort=6818
SlurmUser=slurm
SlurmctldDebug=debug
SlurmctldLogFile=/var/log/slurm/slurmctld.log
SlurmdDebug=debug
SlurmdLogFile=/var/log/slurm/slurmd.log
SlurmctldPidFile=/var/run/slurmctld/slurmctld.pid
SlurmdPidFile=/var/run/slurmd/slurmd.pid
SlurmdSpoolDir=/var/spool/slurmd
StateSaveLocation=/var/spool/slurmctld
AccountingStorageEnforce=associations,limits,qos
AccountingStorageHost=node196
AccountingStoragePort=6819
AccountingStorageType=accounting_storage/slurmdbd
JobContainerType=job_container/none
JobAcctGatherFrequency=30
JobAcctGatherType=jobacct_gather/cgroup
SchedulerType=sched/backfill
SelectType=select/cons_tres
SelectTypeParameters=CR_CORE_MEMORY
InactiveLimit=0
KillWait=30
MinJobAge=300
SlurmctldTimeout=60
SlurmdTimeout=120
Waittime=0
AuthType=auth/munge
CredType=cred/munge
EnforcePartLimits=YES
MpiDefault=none
ProctrackType=proctrack/cgroup
ReturnToService=1
SwitchType=switch/none
TaskPlugin=task/affinity,task/cgroup
MaxJobCount=10000
MaxArraySize=1001
MailProg=/usr/bin/smail
PluginDir=/usr/local/slurm-23.02.6/lib/slurm
NodeName=node196 Sockets=1 CoresPerSocket=2 ThreadsPerCore=2 RealMemory=4096 State=UNKNOWN
PartitionName=T1 Nodes=node196 DefMemPerCPU=1024 Default=YES State=UP AllowAccounts=root

shaobo liu <dspam.liu@gmail.com> 于2024年10月19日周六 16:34写道:
My slurm is 23.02.6,I have used EnforcePartLimits=ALL,Users outside of AllowAccounts can still submit。

root@node196:/etc/slurm# scontrol show config |grep EnforcePartLimits
EnforcePartLimits       = ALL
root@node196:/etc/slurm# scontrol show part
PartitionName=T1
   AllowGroups=ALL AllowAccounts=root AllowQos=ALL
   AllocNodes=ALL Default=YES QoS=N/A
   DefaultTime=NONE DisableRootJobs=NO ExclusiveUser=NO GraceTime=0 Hidden=NO
   MaxNodes=UNLIMITED MaxTime=UNLIMITED MinNodes=0 LLN=NO MaxCPUsPerNode=UNLIMITED MaxCPUsPerSocket=UNLIMITED
   Nodes=node196
   PriorityJobFactor=1 PriorityTier=1 RootOnly=NO ReqResv=NO OverSubscribe=NO
   OverTimeLimit=NONE PreemptMode=OFF
   State=UP TotalCPUs=4 TotalNodes=1 SelectTypeParameters=NONE
   JobDefaults=(null)
   DefMemPerCPU=1024 MaxMemPerNode=UNLIMITED
   TRES=cpu=4,mem=4G,node=1,billing=4


Paul Raines via slurm-users <slurm-users@lists.schedmd.com> 于2024年10月17日周四 22:24写道:

I am using Slurm 23.11.3 and it AllowAccounts works for me.  We
have a partition  defied with AllowAccounts and if one tries to
submit in an account not in the list one will get

srun: error: Unable to allocate resources: Invalid account or
account/partition combination specified


Do you have EnforcePartLimits=ALL


On Wed, 16 Oct 2024 8:55pm, shaobo liu via slurm-users wrote:

>        External Email - Use Caution
>
> Tested slurm-23.* version, AllowAccounts parameter does not work.
>
> daijiangkuicgo--- via slurm-users <slurm-users@lists.schedmd.com>
> 于2024年6月29日周六 16:30写道:
>
>> AllowGroups is ok.
>>
>> --
>> slurm-users mailing list -- slurm-users@lists.schedmd.com
>> To unsubscribe send an email to slurm-users-leave@lists.schedmd.com
>>
The information in this e-mail is intended only for the person to whom it is addressed.  If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline <https://www.massgeneralbrigham.org/complianceline> .
Please note that this e-mail is not secure (encrypted).  If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately.  Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail.

--
slurm-users mailing list -- slurm-users@lists.schedmd.com
To unsubscribe send an email to slurm-users-leave@lists.schedmd.com