The file is always created to have read/execute permission for the owner.
Here is an excerpt of the code from
_make_batch_script(batch_job_launch_msg_t *msg, char *path)
in src/slurmd/slurmstepd/mgr.c:
if (chmod(script, 0500) < 0) { error("chmod: %m");
}
Is your slurmd daemon running as user root or the person running the job?
Are your uid numbers consistent across the cluster?
Take a look in the slurmd log file (located at
"scontrol show config | grep SlurmdLog").
The file is always created to have read/execute permission for the owner. script( batch_job_ launch_ msg_t *msg, char *path) slurmstepd/ mgr.c:
Here is an excerpt of the code from
_make_batch_
in src/slurmd/
if (chown(script, (uid_t) msg->uid, (gid_t) -1) < 0) {
error( "chown( %s): %m", path);
goto error;
}
if (chmod(script, 0500) < 0) {
error( "chmod: %m");
}
Is your slurmd daemon running as user root or the person running the job?
Are your uid numbers consistent across the cluster?
Take a look in the slurmd log file (located at
"scontrol show config | grep SlurmdLog").