[Bug 1228784] New: 389-ds installation fails
https://bugzilla.suse.com/show_bug.cgi?id=1228784 Bug ID: 1228784 Summary: 389-ds installation fails Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: screening-team-bugs@suse.de Reporter: dmueller@suse.com QA Contact: qa-bugs@suse.de Target Milestone: --- Found By: --- Blocker: --- /usr/sbin/groupadd -r dirsrv [ 20s] /usr/sbin/useradd -r -c User for 389 directory server -d /var/lib/dirsrv -g dirsrv -U dirsrv -s /sbin/nologin [ 20s] useradd: options -U and -g conflict [ 20s] Usage: useradd [options] LOGIN [ 20s] useradd -D [ 20s] useradd -D [options] [ 20s] Options: [ 20s] --badname do not check for bad names [ 20s] -b, --base-dir BASE_DIR base directory for the home directory of the [ 20s] new account [ 20s] --btrfs-subvolume-home use BTRFS subvolume for home directory [ 20s] -c, --comment COMMENT GECOS field of the new account [ 20s] -d, --home-dir HOME_DIR home directory of the new account [ 20s] -D, --defaults print or change default useradd configuration [ 20s] -e, --expiredate EXPIRE_DATE expiration date of the new account [ 20s] -f, --inactive INACTIVE password inactivity period of the new account [ 20s] -F, --add-subids-for-system add entries to sub[ud]id even when adding a system user [ 20s] -g, --gid GROUP name or ID of the primary group of the new [ 20s] account [ 20s] -G, --groups GROUPS list of supplementary groups of the new [ 20s] account [ 20s] -h, --help display this help message and exit [ 20s] -k, --skel SKEL_DIR use this alternative skeleton directory [ 20s] -K, --key KEY=VALUE override /etc/login.defs defaults [ 20s] -m, --create-home create the user's home directory [ 20s] -M, --no-create-home do not create the user's home directory [ 20s] -N, --no-user-group do not create a group with the same name as [ 20s] the user [ 20s] -o, --non-unique allow to create users with duplicate [ 20s] (non-unique) UID [ 20s] -p, --password PASSWORD encrypted password of the new account [ 20s] -r, --system create a system account [ 20s] -R, --root CHROOT_DIR directory to chroot into [ 20s] -P, --prefix PREFIX_DIR prefix directory where are located the /etc/* files [ 20s] -s, --shell SHELL login shell of the new account [ 20s] -u, --uid UID user ID of the new account [ 20s] -U, --user-group create a group with the same name as the user [ 20s] -Z, --selinux-user SEUSER use a specific SEUSER for the SELinux user mapping [ 20s] --selinux-range SERANGE use a specific MLS range for the SELinux user mapping [ 20s] error: %prein(389-ds-3.1.1~git0.aef1668-1.1.x86_64) scriptlet failed, exit status 1 [ 20s] error: 389-ds-3.1.1~git0.aef1668-1.1.x86_64: install failed [ 20s] error] [ 20s] Installation of 389-ds-3.1.1~git0.aef1668-1.1.x86_64 failed: [ 20s] Error: Subprocess failed. Error: RPM failed: Command exited with status 1. [ 20s] Abort, retry, ignore? [a/r/i] (a): a it shouldn't run "groupadd dirsrv" and then "useradd -U". useradd -U does the groupadd and the user creation in one go. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1228784 Dirk Mueller <dmueller@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|screening-team-bugs@suse.de |william.brown@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1228784 Dirk Mueller <dmueller@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P1 - Urgent -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1228784 https://bugzilla.suse.com/show_bug.cgi?id=1228784#c1 --- Comment #1 from William Brown <william.brown@suse.com> --- Can you please provide links to documentation about how to properly add users in a way that's acceptable? -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1228784 https://bugzilla.suse.com/show_bug.cgi?id=1228784#c2 Dominique Leuenberger <dimstar@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dimstar@opensuse.org --- Comment #2 from Dominique Leuenberger <dimstar@opensuse.org> --- Reason here is a bug in sysuser-tools, fix should land in snapshot 0803: https://build.opensuse.org/request/show/1191154 -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1228784 https://bugzilla.suse.com/show_bug.cgi?id=1228784#c3 --- Comment #3 from William Brown <william.brown@suse.com> --- (In reply to Dominique Leuenberger from comment #2)
Reason here is a bug in sysuser-tools, fix should land in snapshot 0803:
i'll repeat my request, that you provide docs to how I should add users for packages. :) -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1228784 https://bugzilla.suse.com/show_bug.cgi?id=1228784#c4 --- Comment #4 from Dominique Leuenberger <dimstar@opensuse.org> --- https://en.opensuse.org/openSUSE:Packaging_guidelines#Users_and_Groups -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1228784 https://bugzilla.suse.com/show_bug.cgi?id=1228784#c5 William Brown <william.brown@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #5 from William Brown <william.brown@suse.com> --- So reading between all the lines here, no one actually reported what the real issue was, and that issue was that users defined by sysusers also imply a group. The 389 config was *correctly* adding a group and user, since there was no obvious communication that the group is implied. This has already been fixed via obs. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com