Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UID/GID 200 not always available. #813

Closed
jlinford opened this issue Jul 23, 2018 · 1 comment
Closed

UID/GID 200 not always available. #813

jlinford opened this issue Jul 23, 2018 · 1 comment
Milestone

Comments

@jlinford
Copy link

@koomie, munge-ohpc hard-codes UID and GID 200 in munge.spec, but these ID's are not always available:

    146 %pre
    147 # karl.w.schulz@intel.com (9/10/18) - provide specific uid/gid to deal with
    148 # possibility of getting alternate ownership within Warewulf
    149 /usr/bin/getent group munge >/dev/null 2>&1 || \
    150   /usr/sbin/groupadd -r munge -g 200
    151 /usr/bin/getent passwd munge >/dev/null 2>&1 || \
    152   /usr/sbin/useradd -c "MUNGE authentication service" \
    153   -d "%{_sysconfdir}/munge" -g munge -s /bin/false -r munge -u 200

If a user or group with UID/GID 200 already exists then the package fails to install. Ideally find a way to not hard-code UID/GID for munge, or if that isn't an option then at least add the -o flag to useradd/groupadd so the RPM will install.

Thanks!

@koomie koomie added this to the 1.3.6 milestone Jul 25, 2018
@koomie
Copy link
Contributor

koomie commented Jul 25, 2018

Problem we run into is if you ever end up in a situation where the uid/gids are not consistent across the system. Don't have a magic solution for that gotcha, but can certainly add in the -o option.

koomie added a commit that referenced this issue Jul 25, 2018
…ion (#813)

Signed-off-by: Karl W. Schulz <karl@ices.utexas.edu>
@koomie koomie closed this as completed Nov 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants