From 45461879c55c0b8f0d4e7e334c377036aef76edb Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 28 Aug 2020 14:02:51 +0200 Subject: SLURM: Set UID and GID --- src/gui_backend_slurm.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/gui_backend_slurm.c b/src/gui_backend_slurm.c index 3144d10a..7285406e 100644 --- a/src/gui_backend_slurm.c +++ b/src/gui_backend_slurm.c @@ -136,6 +136,8 @@ static void *run_indexing(const char *job_title, if ( job == NULL ) return NULL; slurm_init_job_desc_msg(&job_desc_msg); + job_desc_msg.user_id = getuid(); + job_desc_msg.group_id = getgid(); job_desc_msg.mail_user = strdup(opts->email_address); job_desc_msg.mail_type = MAIL_JOB_FAIL; job_desc_msg.comment = strdup("Submitted via CrystFEL GUI"); -- cgit v1.2.3