Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 295376 - Cannot login using xdm/kdm/gdm
Summary: Cannot login using xdm/kdm/gdm
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-01 21:36 UTC by Led Enjes
Modified: 2010-04-07 22:03 UTC (History)
4 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 Led Enjes 2009-12-01 21:36:35 UTC
I could not login to KDE 4 using kdm, gdm or xdm. After I login, I immediately return to the login screen, again. I could, however, login using xdm, if I incorrectly set kdm to log in to, for instance, "kde-4.3.1", instead of "kde-4.3".

But then, I changed the following two lines in /etc/security/pam_env.conf: 

REMOTEHOST DEFAULT=localhost OVERRIDE=@{PAM_RHOST} 
DISPLAY DEFAULT=${REMOTEHOST}:0.0 OVERRIDE=${DISPLAY} 

to:

#REMOTEHOST DEFAULT=localhost OVERRIDE=@{PAM_RHOST} 
#DISPLAY DEFAULT=${REMOTEHOST}:0.0 OVERRIDE=${DISPLAY} 

In other words, I commented out these lines.
After I did this, I could login using KDM!

This issue seems exist since about 2004, however was never resolved.

Reproducible: Always

Steps to Reproduce:
(try to) login using kdm, gdm, or xdm


Actual Results:  
The login screen immediately reappears

Expected Results:  
Login to KDE
Comment 1 Rémi Cardona (RETIRED) gentoo-dev 2009-12-08 13:34:21 UTC
@fellow teams, I have no idea what's going. Help will be much appreciated.

Thanks
Comment 2 Fabio Erculiani (RETIRED) gentoo-dev 2009-12-08 14:21:20 UTC
Can't you find any relevant log inside /var/log and ~/.xsession-errors ?
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-12-08 14:29:32 UTC
I'm really not able to tell you much about KDE4, so “PAM team” (aka *me*) will be on standby until you can ask me something specific.
Comment 4 Rémi Cardona (RETIRED) gentoo-dev 2009-12-08 14:37:22 UTC
(In reply to comment #3)
> I'm really not able to tell you much about KDE4, so “PAM team” (aka *me*)
> will be on standby until you can ask me something specific.

Well neither am I :) I just thought you might know what those options do.
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-12-08 14:43:48 UTC
The first sets the REMOTEHOST variable to localhost unless PAM_RHOST is set (by the application calling the pam stack).

The second sets the DISPLAY variable to ${REMOTEHOST}:0.0 (which means by default localhost:0.0) unless DISPLAY is already set.
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-12-08 14:59:02 UTC
Actually, I forgot to say that by default we don't enable that at all, so it was for what I'm concerned an user setup problem.

On the other hand, KDE probably has some trouble with those settings.
Up to you to find what.
Comment 7 Jean-Francois Ostiguy 2009-12-21 14:40:47 UTC
About 48 hrs ago I started experiencing _almost_ the same problem i.e. kdm login 
returns to the login screen. There does not seem to be any helpul info in the logs.
I found this bug report so I looked at the contents of /etc/security/pam_env.conf 
The two potentially offending lines are commented out. I also see from the timestamp that this file was just recently updated. Uncommenting the lines seems to have no effect. I am not sure what is going on ... perhaps something else was changed in the pam package ... or perhaps in kdm ? 

Another piece of confusing information: xdm works fine.
      
Comment 8 Jan Essert 2009-12-31 14:36:23 UTC
I have the same problem as the poster in comment #7.

kdm-4.3.4 starts fine. On logging in, I get a black screen for a second or so and then it returns to the kdm screen.

I cannot find any problems in logs, etc. I can start kde with startx without problems.

All lines in /etc/security/pam_env.conf are commented out, so this is perhaps unrelated to pam.

Remerging xinit, kdm, pam, pambase does not change anything. Reverting to kdm-4.3.3 does not help either.

Should I open a separate bug?

emerge info:

Portage 2.2_rc61 (default/linux/x86/10.0/desktop, gcc-4.4.2, glibc-2.11-r1, 2.6.32-gentoo i686)
=================================================================                              
System uname: Linux-2.6.32-gentoo-i686-Intel-R-_Pentium-R-_M_processor_1.70GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 31 Dec 2009 12:00:20 +0000                                              
ccache version 2.4 [enabled]                                                                    
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4, 3.1.1-r1
dev-python/pycrypto: 2.1.0
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.0
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-mtune=pentium-m -march=pentium-m -fomit-frame-pointer -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-mtune=pentium-m -march=pentium-m -fomit-frame-pointer -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa avahi berkdb branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvb dvd dvdr eds emboss encode evo exif fam firefox flac gdbm gif gphoto2 hal iconv inotify ipod jpeg jpeg2k kde kdehiddenvisibility libnotify logrotate mad matroska mikmod mmx mmxext mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly ogg openexr opengl openmp pam pcre pdf perl png ppds pppd pulseaudio python qt3 qt3support qt4 quicktime readline reflection samba sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd theora thunar tiff truetype unicode usb v4l v4l2 vorbis win32codecs x264 x86 xcb xcomposite xml xorg xulrunner xv xvid xvmc zeroconf zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" CAMERAS="ptp2 directory" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 9 Chí-Thanh Christopher Nguyễn gentoo-dev 2009-12-31 15:12:02 UTC
This is sometimes caused by consolekit being enabled by xinit /etc/X11/xinit/xinitrc.d/ but the consolekit init script not started.
Comment 10 Jan Essert 2009-12-31 16:38:20 UTC
You are right, consolekit is indeed displayed as "crashed" by rc-status.

I seem to suffer from bug #295799 - I have never seen any error that consolekit would not start. I have no idea why it does not start. If the error persists after remerging, I will post a new bug.
Comment 11 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-04-07 22:03:26 UTC
Closing as there seem to be two different issues mixed in this bug and it is unclear which one still exists (if any). Please reopen if you still see the login problem.