So you already have ACL usersets? You could just add (or replace?) DEPT as a
‘type’ (comma separated) something like:
#!/bin/bash -e
# get all the usersets from the sharetree (or some other way)
for D in $(qconf -sst | awk -F= '{print $1}' | grep -v Root); do
# for each of them, dump the current settings to stdout, sed changes, write
to tmp
qconf -su $D | sed 's/ACL/ACL,DEPT/; s/fshare 0/fshare 1000/; s/oticket
0/oticket 50/' > /tmp/new_DEPT
# modify the access_list with the new values
qconf -Mu /tmp/new_DEPT
done
Does that help?
-Hugh
From: [email protected] [mailto:[email protected]] On
Behalf Of Douglas Duckworth
Sent: Wednesday, July 11, 2018 9:21 AM
To: users Users <[email protected]>
Subject: [gridengine users] Make All Usersets Their Own Department
Hi
We are running GE 6.2u5 and moving to Slurm. Though before we do some changes
need to be made within GE.
For example we have 66 user sets within our share tree. However none of them
were configured as a department.
Using qmon I see an option to make the user set a department. Though using the
GUI does not seem very fun.
Any way to script this change out using qconf?
Thanks,
Douglas Duckworth, MSc, LFCS
HPC System Administrator
Scientific Computing Unit
Physiology and Biophysics
Weill Cornell Medicine
E: [email protected]<mailto:[email protected]>
O: 212-746-6305
F: 212-746-8690
_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users