2015-09-01 19:50 GMT+02:00 Jan Schulze <[email protected]>:

>
> Dear all,
>
> this is slurm 14.11.6 on a ROCKS 6.2 cluster.
>
> I have a perhaps trivial question concerning the user permissions for the
> ssh login to computing nodes. The default setting allows our users to login
> to computing nodes exclusively if they have a job running. Can one extend
> these permissions such that the users are also allowed to log in to the
> computing node if they have a suspended job (changed to suspended state by
> root using scontrol) on it?
>
> Thanks.
>
> greetings
>
>
> Jan Schulze
>

check the lines listed below in 'contribs/pam/pam_slurm.c';   I assume you
are using it with hostbased ssh ?




            job_info_t *j = &msg->job_array[i];
/*This is probably the line you can remove to achieve your goal: */
                if (j->job_state == JOB_RUNNING) {
                        DBG ("jobid %ld: nodes=\"%s\"", j->job_id,
j->nodes);
                        if (_hostrange_member(nodename, j->nodes) ) {



cheers,
marcin

Reply via email to