LinuxQuestions.org
Review your favorite Linux distribution.
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 06-08-2014, 04:38 PM   #1
Ribo01
Member
 
Registered: Aug 2010
Posts: 103

Rep: Reputation: 5
Authentication failure !


Hello people, hope your had a great Sunday?

Am having issues logging into my system with a user have been using for a long time now.

Anytime my system boots up and i try to log in with a user have always used to log in, its give me this error
Quote:
Authentication Failed
The funny and amusing thing is,have used the same user to log in to my system uncountable times.

I can log in as Root, and
Quote:
su
to this user that i cant log in with as Root.

I checked my
Quote:
/etc/passwd
and
Quote:
/etc/shadow
everything looks good.

Am puzzled and would need from someone prof erring and solution and the cause.

The OS is Oracle Linux 5
 
Old 06-08-2014, 07:35 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,080

Rep: Reputation: 4379Reputation: 4379Reputation: 4379Reputation: 4379Reputation: 4379Reputation: 4379Reputation: 4379Reputation: 4379Reputation: 4379Reputation: 4379Reputation: 4379
Quote:
Originally Posted by Ribo01 View Post
Hello people, hope your had a great Sunday?
Am having issues logging into my system with a user have been using for a long time now. Anytime my system boots up and i try to log in with a user have always used to log in, its give me this error

The funny and amusing thing is,have used the same user to log in to my system uncountable times.

I can log in as Root, and to this user that i cant log in with as Root. I checked my and everything looks good. Am puzzled and would need from someone prof erring and solution and the cause. The OS is Oracle Linux 5
Well, the only reasons would be your user is wrong or password is wrong. So either you have caps-lock on, a broken key on your keyboard, or someone changed your password. Since you have root access, not sure what you need help with...log in as root, and change your password back. Look around at the system logs, see who logged in last, and what command(s) were run. Also, how did you 'check' your passwd and shadow files?

You don't say what version/distro of Linux you're using, what environment (home? work?), how many user(s), etc., so it's hard to even speculate on what could have happened.
 
Old 06-09-2014, 12:03 PM   #3
Ribo01
Member
 
Registered: Aug 2010
Posts: 103

Original Poster
Rep: Reputation: 5
Hi TBOne.

Thanks for the reply. to give answers to the questions asked.

1)You made mention about the password or user name being wrong, i can tell you perfectly that neither is the case, the password and the username is perfectly right. to squash all doubts, i infact use the same password for the "root" user, yeah you might think that is totally wrong, yeah i agree, its just a personal test computer with Oracle Linux 5 installed on a VMware.
So the puzzling thing is this, i fail to log in with the same password i use to log in as root, so that obvious that no key is broken

2)You asked for my Distr, i use an Oracle Enterprise Linux 5

3)You also asked for how many users, as i said its a test system and personal computer used to get familiar with the LInux OS.

4) You asked how i checked "passwd and shadow file" c'mon , i "cat /etc/passwd and /etc/shadow" just to be sure if the user existed and the password hash in the "/etc/shadow file" for the said user.

Still puzlled and still looking for an answer if one exist?

regards

Last edited by Ribo01; 06-09-2014 at 12:05 PM.
 
Old 06-09-2014, 12:32 PM   #4
cepheus11
Member
 
Registered: Nov 2010
Location: Germany
Distribution: Gentoo
Posts: 281

Rep: Reputation: 88
If the user is locked, login is forbidden. What happens when you unlock the user (as root):

Code:
# passwd -u <username>
If you want a solution more than an answer how it happened, you can reset the password (again as root):

Code:
# passwd <username>
This will prompt for the passwort twice and rewrite the appropriate line in /etc/shadow.
 
Old 06-09-2014, 12:45 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,080

Rep: Reputation: 4379Reputation: 4379Reputation: 4379Reputation: 4379Reputation: 4379Reputation: 4379Reputation: 4379Reputation: 4379Reputation: 4379Reputation: 4379Reputation: 4379
Quote:
Originally Posted by Ribo01 View Post
Hi TBOne.
Thanks for the reply. to give answers to the questions asked.

1)You made mention about the password or user name being wrong, i can tell you perfectly that neither is the case, the password and the username is perfectly right. to squash all doubts, i infact use the same password for the "root" user, yeah you might think that is totally wrong, yeah i agree, its just a personal test computer with Oracle Linux 5 installed on a VMware.
Sorry, but SOMETHING is obviously wrong with your user ID or password. If they're both correct, you would be able to log in.
Quote:
So the puzzling thing is this, i fail to log in with the same password i use to log in as root, so that obvious that no key is broken
That would rule out the broken key...just a stab in the dark there.
Quote:
2)You asked for my Distr, i use an Oracle Enterprise Linux 5
Ok.
Quote:
3)You also asked for how many users, as i said its a test system and personal computer used to get familiar with the LInux OS.
You didn't say this in your first post, which is why I asked. And if you want to get familiar with Linux, you should REALLY not use OEL or RHEL. Those are commercial, pay-for, server type distros. You can run Fedora, Debian, openSUSE, or Mint, and still have the same capabilities, all with access to online repositories/updates/patches. Also, OEL and RHEL are NOT designed for consumer-grade hardware...so things like sound, bluetooth, etc., may have issues. But, that's up to you...if you want the headaches and old software, enjoy.
Quote:
4) You asked how i checked "passwd and shadow file" c'mon , i "cat /etc/passwd and /etc/shadow" just to be sure if the user existed and the password hash in the "/etc/shadow file" for the said user
So not really 'checking' those files, just looking for the user ID, which is good. As cepheus11 pointed out, if your user ID is locked, you won't be able to log in.

...which brings us back full circle. SOMETHING changed, and SOMEONE had to do it; again, look at the system log files and the user histories for the user(s) on your system. Check the "last" command out, and see who logged in when, and from where. If you accidentally locked your account, unlock it. Reset your password.
 
Old 06-12-2014, 12:38 PM   #6
Ribo01
Member
 
Registered: Aug 2010
Posts: 103

Original Poster
Rep: Reputation: 5
Hi TBOne, cephues11 and the whole forum.

sorry have not been back for a while now, been so tied up. Anyway, to let you guys know, the user account isn't locked, cause i checked the status
Quote:
passwd -S
and its not "locked."

have done a reset of the user account

Quote:
passwd <username>
and yeah, the password was reset but still cant log in with the same username

TBOne, you made mention of me checking "logs", don't know if there is any particular log i should check your suggestion please.

Am still puzzled why i cant log into the system with the user account, but can
Quote:
su
as root into the user account.

so i still need a solution and answer to my question
 
Old 06-12-2014, 12:46 PM   #7
sgrlscz
Member
 
Registered: Aug 2008
Posts: 63

Rep: Reputation: 39
Have you looked at /var/log/secure? That should tell you the reason it's failing.
 
  


Reply


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
Authentication failure stesuswede SUSE / openSUSE 1 05-07-2013 02:08 AM
at: Authentication Failure rl92694 Linux - General 4 10-22-2012 09:33 PM
Authentication Failure benc1213 Linux - Networking 2 08-29-2011 12:31 AM
Authentication failure Jotsku Linux - Server 1 09-08-2009 11:23 AM
$su, Authentication Failure Eilya Ubuntu 9 10-14-2008 05:41 AM

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

All times are GMT -5. The time now is 08:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration