LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 01-18-2010, 01:54 AM   #1
ashishkhandelwal
Member
 
Registered: Jan 2010
Posts: 34

Rep: Reputation: 15
login problem in suse linux


I am the system administrator.I had logged out from my suse linux system on Saturday and now on today when i am trying to login through root i am not able to do so.It is giving me the line like:-
linux-9yl5 login:
and then when i am typing root there it is giving login incorrect....

It is not even asking for root password which i remember very well.Is there any solution for this problem. Please help me and thank you in advance.
 
Old 01-18-2010, 02:20 AM   #2
AutoBot
Member
 
Registered: Mar 2002
Location: I can see you from here.
Distribution: Gentoo 1.3b
Posts: 182

Rep: Reputation: 34
If you use sudo you can do

Code:
sudo su -
passwd
And put in a new password.
 
Old 01-18-2010, 02:53 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
AutoBot: SuSE configures sudo by default that you need to use the root password.

Do you use /etc/passwd & /etc/shadow for authentication, or NIS or LDAP or AD?
Is it only root that can't log in or is every user effected?
Do you have ssh configured? Can you log in remotely?

Can you log into the first virtual terminal (vt/0)? Press [CTRL][ALT][F1] and try logging in. It is possible that root logins are restricted to certain terminals. (configured in /etc/securetty)

Did you change the locale (e.g. LC_ALL) of the system so that the character codes for the keys you press are different now?

If you have physical access, you may need to boot up with a live CD or the rescue mode to fix it. First try booting into single mode by entering "S" as a boot option. You will be asked for the root password, but maybe it will be accepted, depending on what the problem is.

I don't know which SuSE version you have. Once I accidentally didn't give a root password during and there was a problem with a hard drive. I had to boot up with a live CD, mount the lvm volumes and copy my regular password hash (in /etc/shadow) to root's so I could log in. Zeroing the root password would not work.

It is possible that you have a problem with the root partition. The system can't log you in if it can't read /etc/shadow.

Last edited by jschiwal; 01-18-2010 at 03:01 AM.
 
Old 01-18-2010, 02:58 AM   #4
AutoBot
Member
 
Registered: Mar 2002
Location: I can see you from here.
Distribution: Gentoo 1.3b
Posts: 182

Rep: Reputation: 34
Yes I'm not up on Suse, sorry for the bad information.

What happens when you try to launch an application that requires root privileges?
 
Old 01-18-2010, 03:40 AM   #5
ashishkhandelwal
Member
 
Registered: Jan 2010
Posts: 34

Original Poster
Rep: Reputation: 15
I am able to login through other users and also i can act as a root user by giving su root command and then giving the root password so that means root password is correct and not changed.When i am trying by root it is not even accepting the user login name that is root and giving me error "login incorrect".I have tried it on all terminals.Before logging out last time i have just installed CVS(Version Control System) and created a cvs user with password.
 
Old 01-19-2010, 07:57 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
Log in as a regular user in one virtual terminal. Run "sudo tail -f /var/log/messages" or which log file your system logs failed login attempts.

Then switch to another virtual terminal and try to log in as root. You probably need to get the answer from the log as you make an attempt.

My guess is either "/etc/securetty" or one of the PAM files in /etc/pam.d/ is where the problem is.
 
  


Reply

Tags
login


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
Suse Linux 10.0 login gui problem after install. socaldnice Linux - Newbie 2 09-21-2008 12:12 AM
SuSE Login Problem. VIR3NT SUSE / openSUSE 4 04-23-2006 02:28 AM
SuSE Linux 10 Login Problem cheetahman SUSE / openSUSE 6 03-10-2006 02:19 PM
SuSE 9.2 LOGIN problem khaleel5000 Linux - Software 0 02-23-2006 10:27 PM
Login Problem with Suse 8.0 michaelegan Linux - Software 2 04-08-2003 04:55 PM


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