Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105666 - WIPE_TMP="yes" causes non-root user to fail starting X
Summary: WIPE_TMP="yes" causes non-root user to fail starting X
Status: RESOLVED DUPLICATE of bug 99679
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-12 01:11 UTC by Markus Tacker
Modified: 2005-09-12 02:52 UTC (History)
0 users

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 Markus Tacker 2005-09-12 01:11:44 UTC
WIPE_TMP="yes" is defined in /etc/conf.d/bootmisc
After a reboot /tmp is empty. The user which logs on with kdm creates
/tmp/.ICE-unix. X restarts if you log in as user with KDM and goes back to the
login screen.
If you run startx as the user from shell X shuts down (see below).

Chowning /tmp/.ICE-unix to root:root fixes this problem.

Reproducible: Always
Steps to Reproduce:
1. Set WIPE_TMP="yes" in /etc/conf.d/bootmisc
2. Reboot
3. run startx as non-root or log on normally via kdm

Actual Results:  
X shuts down with 
_IceTransmkdir: ERROR: Owner of /tmp/.ICE-unix mut be set to root


kde-base/kdm-3.4.2
x11-base/xorg-x11-6.8.2-r2

# emerge info
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r1,
2.6.12-gentoo-r10 i686)
=================================================================
System uname: 2.6.12-gentoo-r10 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.6.13
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [disabled]
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg distcc distlocks fixpackages sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
rsync://linux.rz.ruhr-uni-bochum.de/gentoo/
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo
rsync://mirrors.sec.informatik.tu-darmstadt.de/gentoo
http://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo
rsync://ftp.join.uni-muenster.de/gentoo/"
LINGUAS="de"
MAKEOPTS="-j19"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/gentoo-php-overlay/for-portage
/usr/local/gentoo-php-overlay/experimental"
SYNC="rsync://otrs.aiti-group.de/gentoo-portage"
USE="x86 3dnow 3dnowex 3dnowext X aac acl alsa apache2 apm arts avi berkdb
bitmap-fonts crypt cups curl emboss encode esd fam foomaticdb fortran gd gdbm
gif gpm gstreamer gtk gtk2 gtkhtml hal imagemagick imap imlib ipv6 java jpeg
junit kde ldap libg++ libwww mad mikmod mmext mmx motif mozilla mp3 mysql
ncurses network nls ogg opengl pam pdflib pic png python qt quicktime readline
real samba sdl slang spell sqlite sse ssl svga tcltk tcpd tiff truetype
truetype-fonts type1-fonts vhosts win32codecs xml2 xv xvid zlib
video_cards_radeon linguas_de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2005-09-12 02:40:18 UTC
It's a duplicate of bug 99679, please mark.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-09-12 02:45:36 UTC

*** This bug has been marked as a duplicate of 99679 ***
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-09-12 02:52:07 UTC
(In reply to comment #0)
> Chowning /tmp/.ICE-unix to root:root fixes this problem.

I'd suggest that you re-emerge baselayout, don't understand how could that
directory end up otherwise than root:root

/etc/init.d/bootmisc
<snip>
       ebegin "Cleaning /tmp directory"
                        {
                                rm -f /tmp/.X*-lock /tmp/esrv* /tmp/kio*
/tmp/jpsock.* /tmp/.fam*
                                rm -rf /tmp/.esd* /tmp/orbit-* /tmp/ssh-*
/tmp/ksocket-* /tmp/.*-unix
                                # Make sure our X11 stuff have the correct
permissions
                                mkdir -p /tmp/.{ICE,X11}-unix
                                chown 0:0 /tmp/.{ICE,X11}-unix
                                chmod 1777 /tmp/.{ICE,X11}-unix
                                [[ -x /sbin/restorecon ]] && restorecon
/tmp/.{ICE,X11}-unix
                        } &> /dev/null
                        eend 0
</snip>