On 06/04/16 05:19, Michael Kit Gilbert wrote:

> Would someone be able to point me to the code in Slurm that allows
> sbatch to submit jobs as another user (using the --uid option)? I don't
> see any use of the setuid() function for sbatch...is there some other
> method employed?

I don't believe sbatch does that, it just fills in the derived numeric
UID from the command line into the job description (as long as you're
submitting as root) and then fires the job off to slurmctld.

Then when slurmd runs the job it'll use the UID in the job description
(which of course defaults to the user submitting it if you're not root).

All the best,
Chris
-- 
 Christopher Samuel        Senior Systems Administrator
 VLSCI - Victorian Life Sciences Computation Initiative
 Email: [email protected] Phone: +61 (0)3 903 55545
 http://www.vlsci.org.au/      http://twitter.com/vlsci

Reply via email to