Skip to content

Commit

Permalink
rms/munge: add '-o' option to useradd/groupadd calls in pre-exec sect…
Browse files Browse the repository at this point in the history
…ion (#813)

Signed-off-by: Karl W. Schulz <karl@ices.utexas.edu>
  • Loading branch information
koomie committed Jul 25, 2018
1 parent 88e7405 commit 1f41004
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/rms/munge/SPECS/munge.spec
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ rm "$RPM_BUILD_ROOT"/etc/rc.d/init.d/munge
# karl.w.schulz@intel.com (9/10/18) - provide specific uid/gid to deal with
# possibility of getting alternate ownership within Warewulf
/usr/bin/getent group munge >/dev/null 2>&1 || \
/usr/sbin/groupadd -r munge -g 201
/usr/sbin/groupadd -r munge -o -g 201
/usr/bin/getent passwd munge >/dev/null 2>&1 || \
/usr/sbin/useradd -c "MUNGE authentication service" \
-d "%{_sysconfdir}/munge" -g munge -s /bin/false -r munge -u 201
-d "%{_sysconfdir}/munge" -g munge -s /bin/false -o -r munge -u 201

%post
if [ ! -e %{_sysconfdir}/munge/munge.key -a -c /dev/urandom ]; then
Expand Down

0 comments on commit 1f41004

Please sign in to comment.