diff --git a/src/resmom/start_exec.c b/src/resmom/start_exec.c index 9c2cae8e6f..7d9caa6e26 100644 --- a/src/resmom/start_exec.c +++ b/src/resmom/start_exec.c @@ -586,7 +586,7 @@ int check_pwd( } if ((pjob->ji_grpcache->gc_ngroup = init_groups( pwdp->pw_name, - pjob->ji_qs.ji_un.ji_momt.ji_exgid, + pwdp->pw_gid, NGROUPS_MAX, pjob->ji_grpcache->gc_groups)) < 0) {