LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 01-04-2008, 10:17 AM   #1
predatorz
Member
 
Registered: Mar 2007
Posts: 58

Rep: Reputation: 15
Unhappy Unable to login via console or SSH


Hi All,

I have a server running on FC4.
I did a yum -y install screen, it updated some dependencies and installed sucessfully. after which i rebooted the server and found that i am unable to login into the server via console or ssh.

I am able to see the login prompt for ssh, but all accounts are unable to login (root/normal users).
I tried to login via console also failed.

This server has webmin installed, and i found that i can login into webmin, i used webmin to change the root password and it say successful. however, i tried to login via SSH or console but still failed.

I can remember that glibc and some pam something was updated prior to installing screen.

What happened? What should i do to be able to login via SSH or console again?

Thanks in advance.
 
Old 01-04-2008, 02:23 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,986

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
I suspect the pam update may have done something to your /etc/ssh/ssh_config file. Check there to make sure PasswordAuthentication is set to yes.
 
Old 01-04-2008, 02:39 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Does webmin allow you shell access. If an update effects a configuration, it may add .rpmnew to a new configuration or .old to an old one. For example, a good thing to check for would be for /etc/pam/login and /etc/pam/login.old. If you have both files, use diff to find the difference.

Also, be sure to look in the logs. An authentication failure will be logged, and may indicate exactly why.

Last edited by jschiwal; 01-04-2008 at 02:41 PM.
 
Old 01-04-2008, 06:26 PM   #4
predatorz
Member
 
Registered: Mar 2007
Posts: 58

Original Poster
Rep: Reputation: 15
I tried using the command shell in webmin, but for all the command i tried to execute, it gives me a su: incorrect password error
 
Old 01-06-2008, 07:16 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
How about using sudo?
 
Old 01-06-2008, 09:22 PM   #6
predatorz
Member
 
Registered: Mar 2007
Posts: 58

Original Poster
Rep: Reputation: 15
> sudo cd /etc/pam.d
su: incorrect password

I went into single mode and check the secure.log

It complain that PAM adding faulty module: /lib/security/pam_stack.so
PAM unable to dlopen(/lib/security/pam_stack.so)
PAM [error: /lib/security/pam_stack.so: cannot open shared object file: No such file or directory]

Last edited by predatorz; 01-06-2008 at 09:23 PM.
 
Old 01-06-2008, 10:02 PM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
It may be time to upgrade to a newer version of Fedora Core. pam_stack was depreciated 3 years ago.
 
Old 01-06-2008, 10:19 PM   #8
predatorz
Member
 
Registered: Mar 2007
Posts: 58

Original Poster
Rep: Reputation: 15
Okay, i managed to sort out the PAM Problem.
What we did is as below and some steps as above reply(moving passwd and shadow file to the orginal place)
on the FC4 server, rpm -qa | grep pam
pam_smb-1.1.7-6
pam_krb5-2.1.15-2
pam-0.99.7.1-5.fc7
pam_passwdqc-0.7.6-1
pam_ccreds-1-6
Okay i remember that the dependency that got installed was pam-0.99.7.1-5.fc7.

Using another server that was on fc7, we compared the diff between authconfig, login and sshd with the one on fc4 server, found out that fc7 server also do not also have the pam_stack.so file as well but was working without any problem.

So we ftp in the authconfig, login and sshd file into the FC4.

Voila, able to login via sshd and console.

Thanks for the help given.
Phew...
 
Old 01-07-2008, 12:17 AM   #9
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Glad you got it working. I don't think FC4 is supported anymore. You may run into problems in the future as well. Upgrading may be something to start thinking about.
 
  


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
Unable to login via console or SSH predatorz Linux - General 3 01-05-2008 07:23 AM
machine not allowing login thru virtual console, only thru ssh dsids Linux - Newbie 2 01-15-2007 11:46 AM
problem with nvidia driver: unable to close graphic enviroment for a console login Valkyrie_of_valhalla Linux - Hardware 2 11-25-2006 02:10 PM
Can only log through ssh, not login console. narc Linux - Software 1 09-05-2005 11:23 PM
Unable to login via console bug1124 Linux - General 1 12-17-2004 06:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 09:31 PM.

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