Hi,

Sorry for a lot of typos in the previous mail. I have just written quick and 
dirty patch that is allowing any user (under which id  job is running) to 
suspend resume  his/her jobs. Is there any  objection to implement something 
like this?

Sergey Meirovich
Unix Support | Global Information Services | Applied Materials
[email protected]<mailto:[email protected]>
Phone : +972543358943,   ext: 15588445
Please reply to all when responding to this email and ensure the email ID : 
[email protected]<mailto:[email protected]> is included

From: Sergey Meirovich --CNTR
Sent: Thursday, May 21, 2015 6:01 PM
To: slurm-dev
Subject: [slurm-dev] scontrol suspen only allowd to slurm user and root?

Hi

In slurmctld:job_mgr.c job_suspend()/job_suspend2() both sharint the same check:


   /* validate the request */
        if ((uid != 0) && (uid != getuid())) {
                error("SECURITY VIOLATION: Attempt to suspend job from user %u",
                      (int) uid);
                rc = ESLURM_ACCESS_DENIED;
                goto reply;
        }

That pretty much means to me that job suspension (via scontrol suspend) is 
allowed only to root and to SlurmUser

Is that intentional?


Attachment: slurm-14.11.6.amat.patch
Description: slurm-14.11.6.amat.patch

Reply via email to