Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 595502 - net-analyzer/munin-2.0.19-r2 - useradd: group munin-async exists - if you want to add this user to that group, use -g.
Summary: net-analyzer/munin-2.0.19-r2 - useradd: group munin-async exists - if you wan...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sysadmin Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-29 08:19 UTC by dawgg
Modified: 2023-07-22 07:51 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dawgg 2016-09-29 08:19:30 UTC
on a ~x86-system with net-analyzer/munin already installed the ebuild for net-analyzer/munin-2.0.19-r2 tries to re-create the group "munin-async" and fails because this group already exists from the previous installation.
error log:
 * Package:    net-analyzer/munin-2.0.19-r2
 * Repository: gentoo
 * Maintainer: sysadmin@gentoo.org
 * USE:        abi_x86_32 elibc_glibc kernel_linux minimal ssl userland_GNU x86
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
 * Adding user 'munin-async' to your system ...
 *  - Userid: 107
 *  - Shell: /bin/sh
 *  - Home: /var/spool/munin-async
 *  - Groups: (none)
 *  - GECOS: added by portage for munin
useradd: group munin-async exists - if you want to add this user to that group, use -g.
 * ERROR: net-analyzer/munin-2.0.19-r2::gentoo failed (setup phase):
 *   (no error message)
 * 
 * Call stack:
 *                ebuild.sh, line 133:  Called pkg_setup
 *   munin-2.0.19-r2.ebuild, line 104:  Called enewuser 'munin-async' '-1' '/bin/sh' '/var/spool/munin-async'
 *              user.eclass, line 248:  Called die
 * The specific snippet of code:
 *              useradd -r "${opts[@]}" "${euser}" || die

i do not use munin-async so the solution was to
groupdel munin-async
and re-emerge the package
Comment 1 Hans de Graaff gentoo-dev Security 2023-07-22 07:51:37 UTC
Munin now uses the new user management mechanism with acct-group and acct-user ebuilds, so this issue should no longer occur.