Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 637584 - user.eclass enewuser/enewgroup do not respect $ROOT
Summary: user.eclass enewuser/enewgroup do not respect $ROOT
Status: RESOLVED DUPLICATE of bug 541406
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-15 14:22 UTC by Matthias Hauber
Modified: 2019-05-29 17:44 UTC (History)
3 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 Matthias Hauber 2017-11-15 14:22:22 UTC
> Portage 2.3.13 (python 3.4.5-final-0, hardened/amd64, gcc-5.4.0, glibc-2.25-r9, 4.13.12-1-ARCH x86_64)                                       
> =================================================================                                                                            
> System uname: Linux-4.13.12-1-ARCH-x86_64-Intel-R-_Core-TM-_i7-5600U_CPU_@_2.60GHz-with-gentoo-2.4.1                                         
> KiB Mem:     8067972 total,   2789744 free                                                                                                   
> KiB Swap:          0 total,         0 free                                                                                                   
> Timestamp of repository gentoo: Wed, 15 Nov 2017 12:00:01 +0000                                                                              
> Head commit of repository gentoo: 5f40bc2861de033d873c6793e535117ab06c0c2c                                                                   
> sh bash 4.3_p48-r1                                                                                                                           
> ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1                                                                                                        
> app-shells/bash:          4.3_p48-r1::gentoo                                                                                                 
> dev-lang/perl:            5.24.3::gentoo                                                                                                     
> dev-lang/python:          2.7.14::gentoo, 3.4.5::gentoo                                                                                      
> sys-apps/baselayout:      2.4.1-r2::gentoo                                                                                                   
> sys-apps/openrc:          0.34.7::gentoo                                                                                                     
> sys-apps/sandbox:         2.10-r4::gentoo                                                                                                    
> sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)                                                                                   
> sys-libs/glibc:           2.25-r9::gentoo                                                                                                    
> Repositories:                                                                                                                                
>                                                                                                                                              
> gentoo                                                                                                                                       
>     location: /usr/portage                                                                                                                   
>     sync-type: rsync                                                                                                                         
>     sync-uri: rsync://rsync.gentoo.org/gentoo-portage                                                                                        
>     priority: -1000                                                                                                                          
>     sync-rsync-extra-opts:                                                                                                                   
>                                                                                                                                              
> fnordpipe                                                                                                                                    
>     location: /var/lib/rescoo/overlays/fnordpipe                                                                                             
>     masters: gentoo                                                                                                                          
> 
> rescoo
>     location: /usr/local/development/rescoo
>     masters: gentoo
> 
> ACCEPT_KEYWORDS="amd64"
> ACCEPT_LICENSE="* -@EULA"
> CBUILD="x86_64-pc-linux-gnu"
> CFLAGS="-O2 -pipe"
> CHOST="x86_64-pc-linux-gnu"
> CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
> CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
> CXXFLAGS="-O2 -pipe"
> DISTDIR="/var/lib/rescoo/distfiles"
> EMERGE_DEFAULT_OPTS="-j3 -b --buildpkg-exclude 'virtual/*'"
> FCFLAGS="-O2 -pipe"
> FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
> FFLAGS="-O2 -pipe"
> GENTOO_MIRRORS="http://distfiles.gentoo.org"
> LDFLAGS="-Wl,-O1 -Wl,--as-needed"
> MAKEOPTS="-j4"
> PKGDIR="/var/lib/rescoo/packages"
> PORTAGE_CONFIGROOT="/var/lib/rescoo/conf/"
> PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
> PORTAGE_TMPDIR="/var/tmp"
> USE="amd64 cracklib cxx hardened justify modules multilib python sqlite urandom vim-syntax xattr xtpax" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
> Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

when I merge packages like openssh which inherits users.eclass with --root=/foo or ROOT=/foo then the enewuser and enewgroup function checks the host system for user/group existence and if the user does not exist in the host system it will be created in hostsystem instead of the newroot system.
Comment 1 Étienne Buira 2018-08-13 03:35:59 UTC
Looks like a dup of https://bugs.gentoo.org/show_bug.cgi?id=541406
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-05-29 17:44:31 UTC

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