Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 20403 - ERROR: net-dialup/mgetty-1.1.30 failed. enewuser failed
Summary: ERROR: net-dialup/mgetty-1.1.30 failed. enewuser failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-03 18:54 UTC by Christian Skarby
Modified: 2003-10-04 09:24 UTC (History)
2 users (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 Christian Skarby 2003-05-03 18:54:01 UTC
Everythings goes fine until the installation-part .. seems like there is some
trouble because I already have a user named fax.

-----BEGIN tail-----
>>> Install mgetty-1.1.30 into /var/tmp/portage/mgetty-1.1.30/image/ category
net-dialup
 * Adding user 'fax' to your system ...
 *  - Userid: next available
 *  - Shell: /bin/false
 *  - Home: /dev/null
 *  - Groups: (none)
useradd: user fax exists

!!! ERROR: net-dialup/mgetty-1.1.30 failed.
!!! Function enewuser, Line 559, Exitcode 9
!!! enewuser failed
-----END tail-----


Reproducible: Didn't try
Steps to Reproduce:
Eventhough I havn't tried on another system, I suspect this would be the steps
to reproduce the error:
1. Have an entry for a user named fax in /etc/passwd
2. net-dialup/mgetty-1.1.30


Actual Results:  
the installation stopped because of error with exitcode 9
(as seen in tail in Details)


Expected Results:  
This is a tricky question, it might be the right thing to do. Let's say that
there is an other user named fax that has nothing to do with this package. On
the other hand, how will this be handled if one is upgrading mgetty? Then the
right thing would be just to use the already existing user .. err .. hmm .. so
how do we make computer logic make sure we won't use a userentry that has
nothing to do with this package and still make it easy to upgrade the package?

Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-gentoo-r2 i686 Pentium III (Katmai)
GENTOO_MIRRORS="http://gentoo.linux.no/ http://gentoo.oregonstate.edu/
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/portage.local"
USE="x86 crypt gif jpeg libg++ mmx ncurses nls pdflib png spell zlib gdbm berkdb
slang readline tetex svga java postgres tcpd pam libwww ssl perl python esd
imlib -3dnow -apm -arts -avi -encode gd -gnome -gpm -gtk imap innodb ipv6 -kde
maildir -mikmod -motif -mpeg mysql oav -oggvorbis -opengl -oss -qt -quicktime
samba -sdl snmp sse -truetype -X -xml2 -xmms -xv -cups"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe"
CXXFLAGS="-march=pentium3 -O3 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 Michal Maruska 2003-05-04 08:27:01 UTC
i had a similar trouble. apparently   enewuser fax  wants to create a new group fax, too. if the groups is there already, it fails, saying:  use -g to add it in  the existing fax group.
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-05-06 09:03:40 UTC
see bug #20490 for more info
Comment 3 Christian Skarby 2003-05-06 10:26:23 UTC
sorry about my "arrogant" attitude, but except for beeing a bugreport on enewuser, I do not really see the relevance for bug #20490 :) - I have mktemp on my system.. 
Comment 4 Chuck Brewer 2003-05-06 20:14:15 UTC
I think first off we need to find out where some people are getting a fax user/group from prior to this package, and if it doesnt conflict I see no reason why enewuser cant be doing existing user checks. Also if this other phantom package thats installing the fax user cant share with mgetty, we need to identify it and perhaps set blocking? Im open for ideas, I dont have a fax user either, so unless its some beta baselayout or a different fax package, I dont know. Input greatly appreciated.
Comment 5 Daniel Ahlberg (RETIRED) gentoo-dev 2003-07-22 09:08:53 UTC
seems fixed.  
Comment 6 Claus Klingberg 2003-10-04 09:24:56 UTC
Sorry, but this does NOT appear to be fixed. mgetty 1.1.30 install is still
failing on my system. Reason may be, that HylaFax created the user "fax"
already. The Ebuild should cope with that, but it doesn't.
Can this be fixed?

[...]
>>> Install mgetty-1.1.30 into /var/tmp/portage/mgetty-1.1.30/image/ category
net-dialup
 * Adding user 'fax' to your system ...
 *  - Userid: next available
 *  - Shell: /bin/false
 *  - Home: /dev/null
 *  - Groups: (none)
useradd: user fax exists

!!! ERROR: net-dialup/mgetty-1.1.30 failed.
!!! Function enewuser, Line 588, Exitcode 9
!!! enewuser failed