Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-25-2009, 11:59 PM   #1
LQ Newbie
Registered: Sep 2007
Location: Italy
Distribution: Ubuntu Feisty 7.0.4
Posts: 11

Rep: Reputation: 0
Can't login with correct password

Everything started when I edit the file /etc/pam.d/gdm adding the line
@include common-pamkeyring
to unlock the keyring

When I rebooted I could not login with my usual password.
So I tried to boot in recovery mode using bash shell as root to edit the file again deleting that line, but nothing, the problem was still there.
So, using live cd, I used the shell as root to browse into my home directory and delete the file:
this file was not there, there was only the file
and I deleted it.

Now the problem is still there and here's the strange fact: when I type atlogin my usual user/pass combo, there's a little popup window which claims "Authentication failed", while if I type my user with another wrong password, the same login window shows, as it should be, that user or pass are wrong, etc. etc.

Is there a "painless" way to solve the problem or I really have to reinstall from scratch?
Old 03-26-2009, 01:48 AM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
Can you log into one of the virtual terminals? Once you are in the terminal, you can try to fix the situation or start X windows:
xinit -- :0.0
will start the xserver and run xterm by default. From the xterm, you could start a window session.

You indicated adding a line to gdm, the that line implies that you have modified your PAM configuration. Getting the PAM configurations wrong can lock you out, as you have found. The only file you mentioned changing is a gdm config file. Logging in to a virtual terminal and starting X using xinit, you won't be running gdm.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
User cannot login using correct password j_70 Linux - Software 11 05-06-2008 09:41 PM
password correct but..unable to login?? venki Linux - Newbie 6 01-12-2007 12:51 AM
Can't login; password is correct ticky87 Linux - General 2 08-15-2004 07:32 PM
Can't login using correct password on RedHat 9 philipacamaniac Linux - Software 8 11-07-2003 10:41 AM
Samba issue. Sometimes cannot login by using correct user/password. olegarr Linux - Networking 3 10-30-2003 09:17 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:24 PM.

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