LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-07-2010, 09:45 PM   #1
aapanju
LQ Newbie
 
Registered: Mar 2008
Posts: 26

Rep: Reputation: 15
Unhappy Authentication failure fedora 12


Ok so I have a hard drive with fedora 12 installed on it. I use it at school and now i connected it to my desktop at home and booted from it. Fedora loads fine but doesnt login to my username. It says authentication failure. I have changed the passwd from terminal multiple times. even removed passwd for user and root. Also tried to login as root by commenting out the line in the file gdm and gdm-password but still cant login. I can how ever change passwords from terminal using single user mode. Any help would be greatly appreciated.. Im reallly stumped on this one. Oh I also tried the hdd in school an it doesnt work there either now. Also tried new user same msg authentication failure. Thanks
 
Old 03-07-2010, 10:16 PM   #2
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 624

Rep: Reputation: 64
This should help:
http://blog.ask4itsolutions.com/2009...gui-fedora-12/
 
Old 03-07-2010, 11:10 PM   #3
aapanju
LQ Newbie
 
Registered: Mar 2008
Posts: 26

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by sayan_acharjee View Post
Thanks but it doesn't let me login. I already tried commenting it out
and than in login typing root and no password. Still no authentication. Created usernames
and still nothing! I hope someone can help me out as I'm fairly new
at Linux! I even removed user password so it doesn't event prompt for a password
and says authentication failed.
Thanks
 
Old 03-07-2010, 11:16 PM   #4
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 624

Rep: Reputation: 64
Quote:
Originally Posted by aapanju View Post
Thanks but it doesn't let me login. I already tried commenting it out
and than in login typing root and no password. Still no authentication. Created usernames
and still nothing! I hope someone can help me out as I'm fairly new
at Linux! I even removed user password so it doesn't event prompt for a password
and says authentication failed.
Thanks
When you are using login in GUI, you must provide a password for root, otherwise it won't allow you to login with root username.

What about the other user accounts, are they logging in in GUI successfully?
 
Old 03-07-2010, 11:23 PM   #5
aapanju
LQ Newbie
 
Registered: Mar 2008
Posts: 26

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by sayan_acharjee View Post
When you are using login in GUI, you must provide a password for root, otherwise it won't allow you to login with root username.

What about the other user accounts, are they logging in in GUI successfully?
But I commented out gdm-password so why would it require a password?
Also the other user accounts do not login. Same message authentication failure.
I created the accounts using adduser and set passwords for them. Even if no pass is set
they don't login. I can access terminal in single user mode.
 
Old 03-08-2010, 12:11 AM   #6
aapanju
LQ Newbie
 
Registered: Mar 2008
Posts: 26

Original Poster
Rep: Reputation: 15
No Linux gurus to my rescue? Format is my last resort

Last edited by aapanju; 03-08-2010 at 12:12 AM.
 
Old 03-08-2010, 12:22 AM   #7
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Have you checked the log files?

Evo2.
 
Old 03-08-2010, 01:31 AM   #8
aapanju
LQ Newbie
 
Registered: Mar 2008
Posts: 26

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by evo2 View Post
Have you checked the log files?

Evo2.
/var/logs ? I haven't seen it but if u giv me the command I'll paste the log I don't know how to
view log page by page.
 
Old 03-08-2010, 01:40 AM   #9
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
Originally Posted by aapanju View Post
/var/logs ? I haven't seen it but if u giv me the command I'll paste the log I don't know how to
view log page by page.
Try to log into the gui, when that fails, log into a console, then run the following command to see which log files were recently written to:

Code:
ls -ltr /var/log | tail
That will print the names of the ten most recently written to log files.

Then look in each of those files using the less commmand. For example

Code:
less /var/log/syslog
Inside less you can use the arrow and Page up/down keys to navigate. You can quit by hitting "q".

In one of those files you should be able to find some information about why you were not able to log in in the gui. So, have a look and then tell us if you find anything suspicious.

Cheers,

Evo2.
 
Old 03-08-2010, 02:36 AM   #10
aapanju
LQ Newbie
 
Registered: Mar 2008
Posts: 26

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by evo2 View Post
Try to log into the gui, when that fails, log into a console, then run the following command to see which log files were recently written to:

Code:
ls -ltr /var/log | tail
That will print the names of the ten most recently written to log files.

Then look in each of those files using the less commmand. For example

Code:
less /var/log/syslog
Inside less you can use the arrow and Page up/down keys to navigate. You can quit by hitting "q".

In one of those files you should be able to find some information about why you were not able to log in in the gui. So, have a look and then tell us if you find anything suspicious.

Cheers,

Evo2.
Ok I finaaly logged in as root! I changed the password
for user and logged out but still it says authentication failure.
Less /var/log/secure
localhost unix_chkpwd (1669): password check failed fir user
aapanju
localhost sshd (4626): fatal: access denied for user aapanju by
Pam account configurator
sshd failed password fir aapanju from (ip adress here)
port (here) ssh2
 
Old 03-08-2010, 02:47 AM   #11
aapanju
LQ Newbie
 
Registered: Mar 2008
Posts: 26

Original Poster
Rep: Reputation: 15
What does this mean??
Localhost sshd 3882 invalid user Ali from ipaddress
localhost sshd 3884 input_userauth_request: invalid user Ali
localhost sshd 3882 Pam_unix(sshd:auth) check pass user unknown
I'm lost
 
Old 03-08-2010, 02:51 AM   #12
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Ok, what method are you using to change your password? Are you using "passwd aapanju" as root? Are any error messages reported?

Also, I'd like it if you could confirm what is and is not actually working. Eg. console login as which users? ssh login? (seems this fails), X login, and also what about login in as root and then "su aapanju"?


Evo2.
 
Old 03-08-2010, 02:52 AM   #13
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Quote:
Originally Posted by aapanju View Post
What does this mean??
Localhost sshd 3882 invalid user Ali from ipaddress
localhost sshd 3884 input_userauth_request: invalid user Ali
localhost sshd 3882 Pam_unix(sshd:auth) check pass user unknown
I'm lost
That means that someone is trying to log into your machine over ssh using the username Ali.

Evo2.
 
Old 03-08-2010, 02:57 AM   #14
aapanju
LQ Newbie
 
Registered: Mar 2008
Posts: 26

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by evo2 View Post
That means that someone is trying to log into your machine over ssh using the username Ali.

Evo2.
But im the only one trying to login and even if someone is why cant I loging using my username and password ?

Mar 7 14:28:15 localhost pam: gdm-password[1815]: pam_unix(gdm-password:auth):
authentication failure; logname= uid=0 euid=0 tty=:0 ruser= rhost= user=fedora
Mar 7 14:28:24 localhost sshd[1531]: Received signal 15; terminating.
Mar 7 14:38:27 localhost sshd[1454]: Server listening on 0.0.0.0 port 22.
Mar 7 14:38:27 localhost sshd[1454]: Server listening on :: port 22.
Mar 7 14:38:44 localhost pam: gdm-password[1716]: pam_unix(gdm-password:auth):
authentication failure; logname= uid=0 euid=0 tty=:0 ruser= rhost= user=root
Mar 7 14:39:06 localhost pam: gdm-password[1752]: pam_selinux_permit(gdm-passwo
rd:auth): Cannot determine the user's name
Mar 7 14:39:06 localhost pam: gdm-password[1752]: pam_unix(gdm-password:auth):
check pass; user unknown
Mar 7 14:39:06 localhost pam: gdm-password[1752]: pam_unix(gdm-password:auth):
authentication failure; logname= uid=0 euid=0 tty=:0 ruser= rhost=
Mar 7 14:39:06 localhost pam: gdm-password[1752]: pam_succeed_if(gdm-password:a
uth): error retrieving information about user
Mar 7 14:39:06 localhost pam: gdm-password[1752]: gkr-pam: error looking up user information for:
Mar 7 14:39:17 localhost pam: gdm-password[1762]: pam_unix(gdm-password:auth):

Mar 7 19:36:34 localhost userhelper[2850]: pam_timestamp(system-config-authentication:session): updated timestamp file `/var/run/sudo/root/unknown'
Mar 7 19:36:34 localhost userhelper[2854]: running '/usr/share/authconfig/authconfig-gtk.py ' with root privileges on behalf of 'root'
Mar 7 19:37:10 localhost userhelper[2873]: pam_timestamp(system-config-selinux:session): updated timestamp file `/var/run/sudo/root/unknown'
Mar 7 19:37:10 localhost userhelper[2876]: running '/usr/share/system-config-selinux/system-config-selinux.py ' with root privileges on behalf of 'root'
Mar 7 19:38:22 localhost userhelper[3100]: pam_timestamp(system-config-users:session): updated timestamp file `/var/run/sudo/root/unknown'
Mar 7 19:38:22 localhost userhelper[3103]: running '/usr/share/system-config-users/system-config-users ' with root privileges on behalf of 'root'
Mar 7 19:40:38 localhost pam: gdm-password[3202]: pam_unix(gdm-password:session): session opened for user root by (uid=0)
Mar 7 19:48:00 localhost passwd: pam_unix(passwd:chauthtok): password changed for aapanju
Mar 7 19:48:00 localhost passwd: gkr-pam: couldn't update the 'login' keyring password: no old password was entered
Mar 7 19:51:25 localhost userhelper[3867]: pam_timestamp(system-config-authentication:session): updated timestamp file `/var/run/sudo/root/unknown'
Mar 7 19:51:25 localhost userhelper[3870]: running '/usr/share/authconfig/authconfig-gtk.py ' with root privileges on behalf of 'root'

this is what all get from /var/log/secure if it makes any sense to you.
Could you suggest what I can do to be able to loging to my usual user ? or should i delete the user an create another user but than I will loose all data associated with that login.
I have disabled sshd as of now.
 
Old 03-08-2010, 03:05 AM   #15
aapanju
LQ Newbie
 
Registered: Mar 2008
Posts: 26

Original Poster
Rep: Reputation: 15
Solved! Disabled sshd rebooted system and I logged in!! Thanks so much! Still don't understand
what was going on and why I couldn't login.
 
  


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
at: Authentication Failure rl92694 Linux - General 4 10-22-2012 09:33 PM
[SOLVED] root authentication failure in Fedora Core 12. rohit0825 Linux - Newbie 17 01-30-2010 06:05 AM
[SOLVED] Authentication failure for root logins (Fedora 12) JustOnePixel Linux - Newbie 8 01-21-2010 08:42 AM
$su, Authentication Failure Eilya Ubuntu 9 10-14-2008 05:41 AM
authentication failure mendiratta Linux - Security 1 07-03-2004 03:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:20 AM.

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