LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Authentication failure fedora 12 (https://www.linuxquestions.org/questions/linux-newbie-8/authentication-failure-fedora-12-a-793869/)

aapanju 03-07-2010 09:45 PM

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

Sayan Acharjee 03-07-2010 10:16 PM

This should help:
http://blog.ask4itsolutions.com/2009...gui-fedora-12/

aapanju 03-07-2010 11:10 PM

Quote:

Originally Posted by sayan_acharjee (Post 3889754)

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

Sayan Acharjee 03-07-2010 11:16 PM

Quote:

Originally Posted by aapanju (Post 3889773)
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?

aapanju 03-07-2010 11:23 PM

Quote:

Originally Posted by sayan_acharjee (Post 3889777)
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.

aapanju 03-08-2010 12:11 AM

No Linux gurus to my rescue? Format is my last resort :(

evo2 03-08-2010 12:22 AM

Have you checked the log files?

Evo2.

aapanju 03-08-2010 01:31 AM

Quote:

Originally Posted by evo2 (Post 3889825)
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.

evo2 03-08-2010 01:40 AM

Quote:

Originally Posted by aapanju (Post 3889861)
/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.

aapanju 03-08-2010 02:36 AM

Quote:

Originally Posted by evo2 (Post 3889870)
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

aapanju 03-08-2010 02:47 AM

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 :(

evo2 03-08-2010 02:51 AM

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.

evo2 03-08-2010 02:52 AM

Quote:

Originally Posted by aapanju (Post 3889930)
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.

aapanju 03-08-2010 02:57 AM

Quote:

Originally Posted by evo2 (Post 3889932)
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.

aapanju 03-08-2010 03:05 AM

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.


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