[slurm-users] Changing a user's default account

Chip Seraphine cseraphine at DRWHoldings.com
Fri Aug 5 15:23:09 UTC 2022


Thanks.  Guess adding/deleting is the way to go then – I was hoping not to lose user history, but alas.


From: slurm-users <slurm-users-bounces at lists.schedmd.com> on behalf of "Renfro, Michael" <Renfro at tntech.edu>
Reply-To: Slurm User Community List <slurm-users at lists.schedmd.com>
Date: Friday, August 5, 2022 at 10:17 AM
To: Slurm User Community List <slurm-users at lists.schedmd.com>
Subject: [ext] Re: [slurm-users] Changing a user's default account

This should work:

sacctmgr add user someuser account=newaccount # adds user to new account

sacctmgr modify user where user=someuser set defaultaccount=newaccount # change default

sacctmgr remove user where user=someuser and account=oldaccount # remove from old account

From: slurm-users <slurm-users-bounces at lists.schedmd.com> on behalf of Chip Seraphine <cseraphine at DRWHoldings.com>
Date: Friday, August 5, 2022 at 9:56 AM
To: Slurm User Community List <slurm-users at lists.schedmd.com>
Subject: [slurm-users] Changing a user's default account
External Email Warning

This email originated from outside the university. Please use caution when opening attachments, clicking links, or responding to requests.

________________________________

I have a user U who is in association with account A, and I want to change that to account B.   The obvious thing does not work:

$ sacctmgr modify user where user=”U” set defaultaccount=”B”
Can't modify because these users aren't associated with new default account “B”…

OK, fair enough.    But I can’t find a good way to meet this requirement!   “sacctmgr create assoc” does not seem to be a thing.   Googling around I see a lot of wags deleting and recreating the user in this situation, which I definitely do _not_ want to do.

How does one change the account that a user is tied to?


--

Chip Seraphine
Linux Admin (Grid)

This e-mail and any attachments may contain information that is confidential and proprietary and otherwise protected from disclosure. If you are not the intended recipient of this e-mail, do not read, duplicate or redistribute it by any means. Please immediately delete it and any attachments and notify the sender that you have received it by mistake. Unintended recipients are prohibited from taking action on the basis of information in this e-mail or any attachments. The DRW Companies make no representations that this e-mail or any attachments are free of computer viruses or other defects.


More information about the slurm-users mailing list