Public bug reported:
Binary package hint: roundup
Ubuntu 8.04, roundup 1.3.3-3.1ubuntu1.
On installing roundup, I get an odd-looking error from groupmod.
Selecting previously deselected package roundup.
(Reading database ... 171521 files and directories currently installed.)
Unpacking roundup (from .../roundup_1.3.3-3.1ubuntu1_all.deb) ...
groupmod: 120 is not a unique GID
Setting up roundup (1.3.3-3.1ubuntu1) ...
Starting Roundup HTTP-Server: roundup-server.
It's because of this line in debian/roundup.preinst:
groupmod -g `id -u roundup` roundup || true
It's expected to sometimes fail, hence the `|| true', because it's
attempting to make the roundup group id match the roundup user id, but
that group id may already have been taken, as is the case here.
$ getent passwd roundup
roundup:x:120:130::/var/lib/roundup:/bin/false
$ getent group 120
powerdev:x:120:haldaemon
$
But it's really disconcerting to see the stderr output. The user then
wonders if something went wrong and spends time investigating.
Discarding the stderr to /dev/null isn't great either; what if there's
some other problem?
I suggest that checking if that GID is already used, perhaps by checking
getent's exit value for being 2, would avoid the problem. Sure, there's
a race condition but worse case, we'd just get the disconcerting
groupmod error like before.
BTW, the line
usermod -g `getent group roundup | sed -e 's/^.*x//' -e 's/://g'`
roundup || true
doesn't parse getent's output very well. If I've added other users to
the group, or even just put `roundup' after the final colon, it won't
work. Perhaps `... | cut -d: -f3' would be more robust and more
readable.
** Affects: roundup (Ubuntu)
Importance: Undecided
Status: New
--
Installing roundup gives disconcerting groupmod error
https://bugs.launchpad.net/bugs/239261
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs