LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 07-28-2018, 01:12 AM   #1
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,613
Blog Entries: 19

Rep: Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458
Question Couldn't log in graphically. Now I can. Explanation?


Started up Debian and got the lightdm login screen as usual. It's the only one of my three systems that uses a graphical login. I entered my name and password and it said "wrong password". Well, maybe I mistyped it. But here's the weird thing: I tried again repeatedly with the correct password and couldn't get in.

I switched to a virtual console and logged in without any problems. So it has to be a problem with lightdm; my password hasn't got lost or anything. From my cli login, I was able get up an alternative desktop display by using startx.

I went back to the other display and decided to log in as root. Some dms won't let you do that but I found I was able to. Of course I typed the root password very carefully because I didn't want to get trapped in a similar loop. Up comes a root desktop with a funny wallpaper.

I logged out (which restarts the X-server of course), tried logging in as myself, and this time it worked. Now what actually happened there? Any ideas? My guess is that it has something to do with logind, because Debian uses systemd now.
 
Old 07-28-2018, 08:20 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,342
Blog Entries: 28

Rep: Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145
Have you checked the log files? I'd start with /var/log/messages. (My copy of Debian has traditional log files, probably generated by rsyslog.)
 
Old 07-30-2018, 08:57 AM   #3
bgstack15
Member
 
Registered: Jul 2017
Distribution: korora
Posts: 90

Rep: Reputation: Disabled
If this is the first time you log in, it's possible your home directory did not exist (until you logged in on the command line)? I've seen desktop environments fail out so it just returns to the login screen, because the ~/.xfce4 or ~/.config/cinnamon or whatever it uses cannot be be created, and for some reason the mkdomedir didn't execute. I think it tends to be on systemd that I've seen.
 
Old 07-30-2018, 09:17 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,613

Original Poster
Blog Entries: 19

Rep: Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458
Quote:
Originally Posted by bgstack15 View Post
If this is the first time you log in, it's possible your home directory did not exist (until you logged in on the command line)? .
No, it's a very old system (though I did recently upgrade it from Jessie to Stretch).

@frankbell: Lightdm makes its own log. Like the Xorg log, it isn't cumulative; you just get the most recent one and the one before. The recent log shows repeated authentication failures, so it must have been actively rejecting my (valid) password and not just stalled. I've copied both these logs for safety, since the in-situ versions will get overwritten.

The only way to test this is to deliberately use a bad password and see if the behaviour is reproducible. If it is, it's a bug and I shall report it. I meant to do it today, but my network card started playing up again and that took up most of my time.
 
Old 07-31-2018, 06:11 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,613

Original Poster
Blog Entries: 19

Rep: Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458
It isn't reproducible. I deliberately logged in with a bad password just now, then gave the correct password and lightdm authenticated me at once. So if I did hit a bug, it was a much more subtle one.

Now that I come to think of it, such an obvious bug as a dm refusing to log you on after one bad password would surely have been picked up long ago.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need pdf book explanation of log 3cxmostar Linux - Newbie 5 10-07-2017 08:56 AM
[SOLVED] Environment variable - only root can log in graphically, lots of programs won't start Pscylo Slackware 9 09-06-2012 03:31 PM
dns log report analyzer graphically mosharaf_linux Linux - Server 1 08-14-2011 11:44 AM
can't log in graphically after editing /etc/shadow Deewanagan Linux - Software 6 08-10-2009 09:43 AM
Log explanation tekmann33 Linux - Newbie 2 07-25-2008 02:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 04:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration