Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 66338 - Can't login as non-root with KDE
Summary: Can't login as non-root with KDE
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-04 12:54 UTC by Peter Bienstman (RETIRED)
Modified: 2004-11-18 10:45 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 Peter Bienstman (RETIRED) gentoo-dev 2004-10-04 12:54:46 UTC
With KDE 3.3 and XFree 4.3.0-r7, I can only login via kdm as root. For non-root users, the KDE splash screen never occurs after the password is accepted.

This is not related to the tcsh problem from bug 63059, as I'm using bash,

For more details and other things I've tried to solve the problem, see http://forums.gentoo.org/viewtopic.php?p=1610883

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.50-r11 (default-x86-1.4, gcc-3.3.4, glibc-2.3.3.20040420-r1, 
2.4.22-gentoo-test-r1) 
================================================================= 
System uname: 2.4.22-gentoo-test-r1 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz 
Gentoo Base System version 1.4.16 
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled] 
Autoconf: sys-devel/autoconf-2.59-r4 
Automake: sys-devel/automake-1.8.5-r1 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=pentium4 -O3 -funroll-loops -fomit-frame-pointer -pipe" 
CHOST="i686-pc-linux-gnu" 
COMPILER="" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/kde/cvs/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=pentium4 -O3 -funroll-loops -fomit-frame-pointer -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache cvs sandbox userpriv usersandbox" 
GENTOO_MIRRORS="http://194.83.57.15/sites/www.ibiblio.org/gentoo/ 
ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo 
http://mirror.switch.ch/mirror/gentoo/" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="PIC X aalib acpi alsa apm arts atlas avi berkdb bitmap-fonts bonobo cdr 
crypt cups dga directfb dvd encode esd f77 flash foomaticdb gdbm gif gphoto2 
gpm gtk gtk2 gtkhtml guile imap imlib java jikes jpeg kde libg++ libwww mad 
mikmod mmx motif mpeg mysql ncurses nls oggvorbis opengl oss p44da pam pda 
pdflib perl pic plotutils png pnp python qt qtmt quicktime readline samba sdl 
slang spell sse ssl svga tcltk tcpd tetex tiff truetype usb wmf x86 xml xml2 
xmms xprint xv zlib"
Comment 1 Gregorio Guidi (RETIRED) gentoo-dev 2004-10-05 02:27:35 UTC
I suspect the forum thread is not describing a single issue.

I see in your case you even startx does not work, so all that
comes to my mind is: no more disk space space in the /home
partition, not enough permission to write in /home/user/,
wrong permissions of /tmp/.ICE-unix and /tmp/.X11-unix, ...

For those that can't login with kdm, but can with startx,
it could be (apart from the tcsh problem), wrong perimission
in /usr/kde/3.3/share/config/kdm/sessions/, or simply they
chose an invalid session (a session still present in
/etc/X11/Session but uninstalled from disk).
Comment 2 Peter Bienstman (RETIRED) gentoo-dev 2004-10-05 02:38:12 UTC
Disk space or permissions on the home directory are not a problem.

These are the permissions on /tmp/.ICE-unix and /tmp/.X11-unix:

pbienst@pbienst:/tmp/.ICE-unix: ls -ali
total 3
   3962 drwxrwxrwt   2 root root  112 Oct  4 21:51 .
      5 drwxrwxrwt  41 root root 2088 Oct  5 08:59 ..
4318859 srwx------   1 root root    0 Oct  4 13:17 2650
5927147 srwxrwxrwx   1 root root    0 Oct  4 13:17 dcop2602-1096888672


pbienst@pbienst:/tmp/.X11-unix: ls -ali
total 3
   4019 drwxrwxrwt   2 root root   72 Oct  4 13:17 .
      5 drwxrwxrwt  41 root root 2088 Oct  5 08:59 ..
5927011 srwxrwxrwx   1 root root    0 Oct  4 13:17 X0

Are these OK?
Comment 3 Gregorio Guidi (RETIRED) gentoo-dev 2004-10-05 02:50:36 UTC
They are OK.
If /var/log/kdm.log, /var/log/Xorg.0.log, ~/.xsession-errors do not
show anything useful, I'm out of ideas.
Comment 4 Peter Bienstman (RETIRED) gentoo-dev 2004-10-05 03:56:03 UTC
Some new data. Logging in from the console and doing startx, still doesn't produce the KDE splash screen.

However, if I wait long enough, these errors pop up in the XFree log file:

(II) XINPUT: Adding extended input device "LIRC-Mouse" (type: MOUSE)
(II) XINPUT: Adding extended input device "Mouse1" (type: MOUSE)
(II) XINPUT: Adding extended input device "NVIDIA Event Handler" (type: Other)
(II) Mouse1: ps2EnableDataReporting: succeeded
Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing from
 list!
(WW) Open APM failed (/dev/apm_bios) (No such file or directory)
(II) NVIDIA(0): Setting mode "1280x1024"
(II) Mouse1: ps2EnableDataReporting: succeeded
(WW) Open APM failed (/dev/apm_bios) (No such file or directory)
(II) NVIDIA(0): Setting mode "1280x1024"
(II) Mouse1: ps2EnableDataReporting: succeeded

Every few minutes, a new error related to APM appears (BTW, my kernel is configured to use ACPI, not APM).

If kill the X-session from the text terminal, and try again with a startx, now KDE boots (although perhaps slightly slower).

This is all reproducible.
Comment 5 Stefan Kiesler 2004-10-07 17:52:59 UTC
I'm having the same problem. Login only possible as root. When trying to "startkde" manually I get the following output:

xsetroot:  unable to open display ''
xset:  unable to open display ""
xset:  unable to open display ""
xsetroot:  unable to open display ''
startkde: Starting up...
ksplash: cannot connect to X server 
kdeinit: Aborting. $DISPLAY is not set.
Warning: connect() failed: : No such file or directory
ksmserver: cannot connect to X server 
startkde: Shutting down...
Warning: connect() failed: : No such file or directory
Error: Can't contact kdeinit!
unix_connect: can't connect to server (unix:/tmp/mcop-test/knut_ranzbude_lan-20ac-41382868)
startkde: Running shutdown scripts...
startkde: Done.



bash-2.05b# emerge info
Portage 2.0.50-r11 (default-x86-1.4, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.6.8-gentoo-r3)
=================================================================
System uname: 2.6.8-gentoo-r3 i686 AMD Athlon(tm) processor
Gentoo Base System version 1.4.16
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-tbird -O2 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-tbird -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox"
GENTOO_MIRRORS="http://horst.ranzbude.lan/wohnheim/data/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://horst.ranzbude.lan/gentoo-portage"
USE="3dnow X acpi alsa apm avi berkdb bitmap-fonts cdr crypt cups doc dvd dvdr emacs encode esd ethereal foomaticdb gd gdbm gif gphoto2 gpm gtk gtk2 imlib jackjava joystick jpeg kde ladcca libg++ libwww linguas_de mad mikmod motif mozillampeg ncurses nls oggvorbis opengl oss pam pdflib perl plotutils png python qt quicktime readline scanner sdl slang socks5 spell ssl svga tcpd tetex tiff truetype usb x86 xml xml2 xmms xprint xv zlib"


What really SUCKS about this error: I can't even get into my old KDE 3.2.2, my Gentoo installation is virtually useless by now!

@Peter Bienstman: Are you sure it's a KDE issue? I experienced it for the first time after upgrading to xfree-4.3.0-r7 and _some_ KDE 3.3.0 packages. So I needed to reboot before KDE 3.3 was fully installed. Maybe xfree is causing the troubles (in the forums someone mentioned having similar problems with a different window manager, fluxbox I think...)?
Comment 6 Peter Bienstman (RETIRED) gentoo-dev 2004-10-11 05:03:20 UTC
Heavymetal: you have to start your kde-session by typing 'startx' and not 'startkde'. Just make sure you have set the correct session in /etc/rc.conf
Comment 7 Stefan Kiesler 2004-10-12 16:05:49 UTC
startx works just fine, as well as using xdm instead of kdm.
I just noticed that this is the "wrong" bug for me, as I'm using tcsh. Sorry for that. For some strange reason I thought I was using bash all the time...

The tcsh related bug is issued here:

http://bugs.gentoo.org/show_bug.cgi?id=63059

and here:

http://bugs.kde.org/show_bug.cgi?id=87671
Comment 8 Peter Bienstman (RETIRED) gentoo-dev 2004-11-18 10:45:49 UTC
Finally figured out what was causing this: I was executing some script in .kde/share/env at startup which was blocking.