Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

[SOLVED]Cannot login from login manager, KDM

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
jonaswidarsson
Apprentice
Apprentice
User avatar
Posts: 273
Joined: Fri Jan 16, 2004 10:39 am
Location: Göteborg, Sweden

[SOLVED]Cannot login from login manager, KDM

  • Quote

Post by jonaswidarsson » Thu Oct 25, 2007 9:55 pm

Hello hi there... It's been like three years since I logged in here, and my account (the profile) was still here. How generous... My posts are all gone, but who cares. They are outdated ;)

I am installing gentoo on my new zepto laptop and I have a problem that I have never run into with gentoo before. I have two users on this install: root and jonas.
  • Both users are able to log in to vt1 (is that what it's called, when the init scripts are done and one can log in without X?).
  • I can start kde from root in vt1 via command `startkde`
  • I can start kdm from root in vt1 via command `kdm`
  • I can start xdm from root in vt1 via command `/etc/init.d/xdm start` and that leads to KDM.
So both KDM and KDE are "functional" in the sense that they run...

But any time I try to log in to jonas or root via KDM, I get "Login failed".
I tried to use xdm too (the ugly one you know) and that gave the same result. Can't login at all.

I have upgraded to latest pam tonight and rebooted but no luck.

I have a secret too! I am actually not using KDE from gentoo. I have been pulling KDE from svn for about 18 months now so I thought I'd set up gentoo to use my compiled KDE without emerging any kde-related ebuilds at all. But, since the problem goes for xdm as much as for kdm, I think I have a system issue that's got nothing to do with my little trick. And I don't know the difference between logging in from KDM/xdm and from login@vt1.

Oh, the logs!
tail /var/log/everything/current:

Code: Select all

Oct 25 23:36:21 [   ] pam_unix(xdm:session): session opened for user jonas by jonas(uid=0)
Oct 25 23:36:33 [   ] pam_unix(xdm:session): session closed for user jonas
Oct 25 23:36:47 [   ] pam_unix(xdm:session): session opened for user root by root(uid=0)
Oct 25 23:37:03 [   ] pam_unix(xdm:session): session closed for user root
That's all I can see. Both events of "session closed" are against my will, but no error messages...

If I set up kdm to autologin jonas, then I get a popup saying something similar to "Authentication failed" with an OK-button.


Anyone?
Last edited by jonaswidarsson on Fri Oct 26, 2007 10:08 pm, edited 1 time in total.
Top
grooveman
Veteran
Veteran
User avatar
Posts: 1217
Joined: Mon Feb 24, 2003 5:24 pm

  • Quote

Post by grooveman » Fri Oct 26, 2007 2:56 am

Root login is disabled by default for KDM. You have to hack your kdmrc to enable it.

As for Jonas, are you certain that he owns all the files in his home directory? Check the perms on the directory itself, and the .xinitrc and any other significant files (especially hidden ones) like .kde, etc.

Also -- try blowing away the contents of /tmp. Occaisionally, stale data builds up there that can do this.
To look without without looking within is like looking without without looking at all.
Top
dedalu
n00b
n00b
Posts: 8
Joined: Thu Jan 11, 2007 9:39 pm

  • Quote

Post by dedalu » Fri Oct 26, 2007 2:57 am

Same here. Is a pam problem, I think:

Code: Select all

Oct 26 00:33:30 dedalu kdm: :0[17415]: PAM unable to dlopen(/lib/security/pam_nologin.so)
Oct 26 00:33:30 dedalu kdm: :0[17415]: PAM [dlerror: /lib/security/pam_nologin.so: symbol pam_syslog, version LIBPAM_EXTENSION_1.0 not defined in file libpam.so.0 with link time reference]
Oct 26 00:33:30 dedalu kdm: :0[17415]: PAM adding faulty module: /lib/security/pam_nologin.so
Oct 26 00:33:30 dedalu kdm: :0[17415]: PAM unable to dlopen(/lib/security/pam_env.so)
Oct 26 00:33:30 dedalu kdm: :0[17415]: PAM [dlerror: /lib/security/pam_env.so: symbol pam_syslog, version LIBPAM_EXTENSION_1.0 not defined in file libpam.so.0 with link time reference]
Oct 26 00:33:30 dedalu kdm: :0[17415]: PAM adding faulty module: /lib/security/pam_env.so
[...] a lot more
Oct 26 00:40:01 dedalu cron[1279]: PAM unable to dlopen(/lib/security/pam_unix.so)
Oct 26 00:40:01 dedalu cron[1279]: PAM [dlerror: /lib/security/pam_unix.so: symbol pam_modutil_getlogin, version LIBPAM_MODUTIL_1.0 not defined in file libpam.so.0 with link time reference]
Oct 26 00:40:01 dedalu cron[1279]: PAM adding faulty module: /lib/security/pam_unix.so
Oct 26 00:40:01 dedalu cron[1279]: PAM unable to dlopen(/lib/security/pam_limits.so)
[...] etc.
I can not restart the computer now, so I am trying a revdep-rebuild...
Top
dedalu
n00b
n00b
Posts: 8
Joined: Thu Jan 11, 2007 9:39 pm

  • Quote

Post by dedalu » Fri Oct 26, 2007 4:38 am

A pam rebuild and /etc/init.d/xdm stop; killall kdm; /etc/init.d/xdm start; solved everything for me.
Top
jonaswidarsson
Apprentice
Apprentice
User avatar
Posts: 273
Joined: Fri Jan 16, 2004 10:39 am
Location: Göteborg, Sweden

  • Quote

Post by jonaswidarsson » Fri Oct 26, 2007 8:09 am

dedalu wrote:A pam rebuild and /etc/init.d/xdm stop; killall kdm; /etc/init.d/xdm start; solved everything for me.
As our logs differ quite much, I don't think we have nearly the same issue, or I mean "had" ;) since yours is solved.

I am not at the computer until about 7 - 8 hours but then I'll recheck the permissions. So far it is a clean user account added with "adduser", and KDE was installed via kdesvn-build after that.

Reading my post again I am surprised that I didn't seem to test starting kde from jonas. I must have been tired. Further reports on that later.

Thank you guys for helping out!
Top
jonaswidarsson
Apprentice
Apprentice
User avatar
Posts: 273
Joined: Fri Jan 16, 2004 10:39 am
Location: Göteborg, Sweden

  • Quote

Post by jonaswidarsson » Fri Oct 26, 2007 7:49 pm

Hm strange. Now it works, and I don't know what dit it...
Top
tarpman
Veteran
Veteran
User avatar
Posts: 1083
Joined: Thu Nov 04, 2004 2:55 am
Location: Victoria, BC, Canada

  • Quote

Post by tarpman » Fri Oct 26, 2007 9:43 pm

If your problem has been fixed, please edit your original post and add [SOLVED] to the title.
Saving the world, one kilobyte at a time.
Top
jonaswidarsson
Apprentice
Apprentice
User avatar
Posts: 273
Joined: Fri Jan 16, 2004 10:39 am
Location: Göteborg, Sweden

  • Quote

Post by jonaswidarsson » Fri Oct 26, 2007 10:14 pm

Well, Solved isn't exactly the right term, but since there is no problem to investigate anymore I am fine. Would have been nice to know wy it went away. Well well...
Top
Morris
n00b
n00b
Posts: 7
Joined: Thu Mar 09, 2006 10:12 am
Location: Basel, Switzerland

  • Quote

Post by Morris » Wed Mar 04, 2009 8:52 am

Hello everybody,
dedalu wrote:A pam rebuild and /etc/init.d/xdm stop; killall kdm; /etc/init.d/xdm start; solved everything for me.
I had the same problem after upgrading to pam-1.0.1. The hint from dedalu solved it for me. Note that just "/etc/init.d/xdm restart" was not enough, the "killall kdm" seems to be necessary.

Best,
Morris
Top
Post Reply

9 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic