Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 80550

Summary: enewuser failed in uclibc env
Product: Gentoo Linux Reporter: Aurélien Francillon <aurelien.francillon>
Component: [OLD] Core systemAssignee: Embedded Gentoo Team <embedded>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Aurélien Francillon 2005-02-03 01:33:49 UTC
To install a new user, a package (snort) uses the enewuser function from eutils.eclass which uses egetent to lookup if a uid is already used, egetent needs nscd to update the passwd database (see bug #66182) but nscd is usually provided by glibc, and don't seems to be provided by uclibc. 
Then the first uid is reported as not used and the package install fails with : 
 * Adding user 'snort' to your system ...
 *  - Userid: 101
 *  - Shell: /bin/false
 *  - Home: /var/log/snort
 *  - Groups: snort
useradd: uid 101 is not unique

( uid 101 is clamavd...) 

Reproducible: Always
Steps to Reproduce:
1. emerge snort on a uclibc gentoo 
2. fails ... 
3.



Expected Results:  
- egetent should gives the next available uid 
-  eaduser should add user snort as uid 102 

Portage 2.0.51-r15 (uclibc/x86/hardened, gcc-3.3.5, uclibc-0.9.26-r7,
2.6.10-hardened-r3 i686)
=================================================================
System uname: 2.6.10-hardened-r3 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jan  9 2005, 17:31:39)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.21-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer -mfpmath=sse -msse -mmmx
-funroll-loops -fforce-addr -finline-functions -frename-registers
-fprefetch-loop-arrays -falign-functions=64"
CHOST="i686-pc-linux-uclibc"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer -mfpmath=sse -msse
-mmmx -funroll-loops -fforce-addr -finline-functions -frename-registers
-fprefetch-loop-arrays -falign-functions=64"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks nodoc noinfo noman sandbox
sfperms strict"
GENTOO_MIRRORS="ftp://ftp.proxad.net/mirrors/ftp.gentoo.org/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 berkdb caps chroot crypt gdbm hardened imap ipv6 libwww maildir mmx
mysql ncurses pam-mysql pic pie python readline sasl sftplogging sse ssl tcpd
tetex uclibc zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 SpanKY gentoo-dev 2005-02-03 05:53:31 UTC
has nothing to do with nscd
Comment 2 Aurélien Francillon 2005-02-03 07:23:31 UTC
sorry for the mistake about nscd and the not so related bug ...
a fix is present in the cvs of uclibc 
http://www.uclibc.org/cgi-bin/cvsweb/uClibc/extra/scripts/getent?r1=1.1&r2=1.2
this fix works for me ...
Comment 3 Aurélien Francillon 2005-02-03 07:29:29 UTC
sorry I don't found the duplicate at the search before posting the bug

*** This bug has been marked as a duplicate of 72220 ***