I discovered this when using emerge command. When I use 'su -' command to switch to 'root' account everything work fine, however when I use 'sux -' command to switch to 'root' account emerge always complains that 'HOME' variable is not set. I found that some other tools also have problem with 'HOME' variable asfter using 'sux -' command and never seen that after 'su -'. Therefore I guess 'sux -' incorrectly sets variables. Oh, and after 'sux -' command when I execute 'set' then I can see correcly set 'HOME' variable, but for some reason it is not visible for some applications. Reproducible: Always Steps to Reproduce: 1. sux - (to switch to root account from ordinary user account) 2. emerge -Du world (I seen emerge complains about HOME many times) Actual Results: Although emerge work fine it very often displays message: HOME not set..... Expected Results: I think behaviour should be exactly the same as after using 'su -' command - no problems with HOME variable. Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.20-gentoo-r5) ================================================================= System uname: 2.4.20-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz Gentoo Base System version 1.4.3.10p1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -Os -pipe -s" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /opt/tomcat/conf /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/local/portage/distfiles" FEATURES="sandbox autoaddcvs ccache fixpackages" GENTOO_MIRRORS="http://kastor.ds.pg.gda.pl/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.uninett.no/pub/linux/Gentoo ftp://gentoo.linux.no/pub/gentoo/ http://gentoo.linux.no/ ftp://ftp.easynet.nl/mirror/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.pudas.net/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://mirror.pudas.net/gentoo http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/local/portage/packages" PORTAGE_TMPDIR="/home/local/data/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.pl/gentoo-portage" USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ libwww mad mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb gdbm berkdb slang readline arts aalib nas svga ggi tcltk java guile ruby sdl gpm tcpd pam ssl perl python esd imlib oggvorbis motif opengl cdr X gtk -gnome alsa qt kde leim"
Explicitely fixing $HOME now in -r1, but the same problem could persist with other variables. Ok, since it took month for someone to notice this HOME problem we will maybe never see a bug report for others :-) Thanks for reporting!