LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-04-2005, 04:18 AM   #1
blackspade
Member
 
Registered: Aug 2005
Location: Orange County, CA
Distribution: Suse 10.2 / backtrack2
Posts: 104

Rep: Reputation: 15
Wont Login as User ONLY ROOT!


I am running REDHAT enterprise Assv4 as my main system. I am able to log in as root (that's who I am right now), but I cannot log in with my regular id. I've made sure the password is reset, but I keep receiving "Authentication Failed".



Thanks,
Jonathan
 
Old 08-04-2005, 04:44 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Create another user with a simple password and try that.

Oh - BTW: have you tried, as root, su'ing into your regular user? (Right after changing the password... or try leaving the password blank so it prompts your regular user for one when you log in.)

Last edited by Simon Bridge; 08-04-2005 at 04:46 AM.
 
Old 08-04-2005, 05:06 AM   #3
blackspade
Member
 
Registered: Aug 2005
Location: Orange County, CA
Distribution: Suse 10.2 / backtrack2
Posts: 104

Original Poster
Rep: Reputation: 15
First you should know, im just learning linux. Well not just learning but still not that good with it. I tryed making another account still the same thing. And then i Su into it it just comes back and says SU:incorrect password, yet never prompts for it. It never had this problem before. It wont let me have a blank password either. Ive tryed booting from the console and trying there too. Basically ive spent the last 5 hours on it and still can't figure out whats wrong.
 
Old 08-04-2005, 05:28 AM   #4
Libu
Member
 
Registered: Oct 2003
Location: Chennai
Distribution: Slackware 12.1
Posts: 165

Rep: Reputation: 36
Does your /etc/passwd file have an entry for the user you are trying to log in as ? If not try to create an entry manually following the other entries present and then try loggin in.

If this works then maybe there is a problem with your "adduser" or "useradd" binary.

Btb what command did you use to create a new user ?

Last edited by Libu; 08-04-2005 at 05:35 AM.
 
Old 08-04-2005, 05:33 AM   #5
blackspade
Member
 
Registered: Aug 2005
Location: Orange County, CA
Distribution: Suse 10.2 / backtrack2
Posts: 104

Original Poster
Rep: Reputation: 15
yea theres a entry already created.
test:x:501:501::/home/test:/bin/bash

what now?

Last edited by blackspade; 08-04-2005 at 05:36 AM.
 
Old 08-04-2005, 05:36 AM   #6
Libu
Member
 
Registered: Oct 2003
Location: Chennai
Distribution: Slackware 12.1
Posts: 165

Rep: Reputation: 36
Okay does the home directory /home/test exist ? And does the shell /bin/bash exist ?? (just ruling out possibilities !!)
 
Old 08-04-2005, 05:37 AM   #7
blackspade
Member
 
Registered: Aug 2005
Location: Orange County, CA
Distribution: Suse 10.2 / backtrack2
Posts: 104

Original Poster
Rep: Reputation: 15
Haha, Yep! they do!
 
Old 08-04-2005, 05:39 AM   #8
blackspade
Member
 
Registered: Aug 2005
Location: Orange County, CA
Distribution: Suse 10.2 / backtrack2
Posts: 104

Original Poster
Rep: Reputation: 15
Someone else said this is another forum
To fix login as root and run system-config-authentication to make sure that it hasn't gotten switched to LDAP somehow.

I really dont understand how to fix that, or if that would even be the problem.
 
Old 08-04-2005, 05:43 AM   #9
Libu
Member
 
Registered: Oct 2003
Location: Chennai
Distribution: Slackware 12.1
Posts: 165

Rep: Reputation: 36
Hmmm...ok...now check whether the user is present in the /etc/shadow file.

if it is present then i really dont know what the problem is.. i will try searching out and see if I can get something
 
Old 08-04-2005, 05:46 AM   #10
Libu
Member
 
Registered: Oct 2003
Location: Chennai
Distribution: Slackware 12.1
Posts: 165

Rep: Reputation: 36
Also you could check the ownership of your home directory /home/test. It should be owned by user "test" !
 
Old 08-04-2005, 05:47 AM   #11
blackspade
Member
 
Registered: Aug 2005
Location: Orange County, CA
Distribution: Suse 10.2 / backtrack2
Posts: 104

Original Poster
Rep: Reputation: 15
root:$1$VZfgeiK3$zPYLnPw88yqXJFkSZ82/F/:12999:0:99999:7:::

test:$1$aK3RQmzv$Zsxu4fCopa50Sy5pSP9Xa1:12999:0:99999:7:::


they're there. Hmm Root works but test wont. I just cant see what is wrong. hmm
Whats the "F" have to do with in the root? compared to the test? Does that have anything to do with it?
 
Old 08-04-2005, 05:51 AM   #12
blackspade
Member
 
Registered: Aug 2005
Location: Orange County, CA
Distribution: Suse 10.2 / backtrack2
Posts: 104

Original Poster
Rep: Reputation: 15
The Test folder is owned by test too. Nothing should be in the folder correct?
 
Old 08-04-2005, 05:51 AM   #13
Libu
Member
 
Registered: Oct 2003
Location: Chennai
Distribution: Slackware 12.1
Posts: 165

Rep: Reputation: 36
Yep it does look okay !! Iam sorry I dont know what could be wrong..Did u try checking the permissions of /home/test (Its should be "test")...Maybe somebody else could help...

Best of luck...will be watching this.....
 
Old 08-04-2005, 05:51 AM   #14
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Could you ever log in as a regular user?
If never, then, as a very-newbie you will be best advised to reinstall.
Anaconda is supposed to do all this for you.

What did you do to create the new user?
Did you try running system-config-authentication?

Please edit your profile to show your distro (RHEL4 AS) and location.

Have you tried the RHEL support - you've paid for it?
 
Old 08-04-2005, 05:54 AM   #15
blackspade
Member
 
Registered: Aug 2005
Location: Orange County, CA
Distribution: Suse 10.2 / backtrack2
Posts: 104

Original Poster
Rep: Reputation: 15
Yes, i was able to log in as a regular user before. I cant reinstall. I host a php website and it took to long to get everything working. It seems i havent been able to log in for 2 days now.
 
  


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
Somone please help, ive tryed everthing. Only logs in as root, Wont login as user. blackspade Linux - Security 2 08-05-2005 10:39 AM
Root wont login new1 Linux - General 5 12-13-2004 11:26 AM
I have re-installed MK 9.2 but cannot login as user, login as root works. bobinglis Mandriva 2 02-22-2004 11:39 AM
can only login as root? user login doesnt work..? anyone? hacking_4_b33r Linux - General 1 02-05-2004 11:40 PM
KDE 3.1 wont start at login, but only for one user nudeatom Mandriva 1 01-07-2004 04:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:52 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