LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-08-2015, 07:34 AM   #1
intmail01
Member
 
Registered: May 2013
Posts: 99

Rep: Reputation: Disabled
Impossible to login: "login timed out after 60 secondes"


Hello,

Today sudenly, I can not login on the server machine.
After typing a lot of usernames it always waits then shows:
"login timed out after 60 secondes"
All software on the server work perfectly and are accesible on network: database, nfs, ping respond, etc..

The day before the display cord was disconnected also there is no possible way to shutdown properly and I was forced to poweroff by shuting down he power supply. For hours the server worked without login possibility because there was no monitor.

I boot the server with a bootcd to repair all partitions (e2fsck -fv) but no change.

Please tell me what happens and how to repair it.

Thank you

Last edited by intmail01; 05-08-2015 at 07:44 AM.
 
Old 05-08-2015, 07:55 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by intmail01 View Post
Today sudenly, I can not login on the server machine.
After typing a lot of usernames it always waits then shows:
"login timed out after 60 secondes"
That's just plain wrong behaviour to start with. Either you know the user account name and use that or you don't. At which point you go retrieve it, not "type a lot of usernames".


Quote:
Originally Posted by intmail01 View Post
Please tell me what happens and how to repair it.
That depends on what you show us. If it's your server then you should know (or investigate) if you run pam_faillock, fail2ban or any other passive or active response tools. Also check lastlog, last, lastb, system and daemon logs in /var/log for clues.
 
Old 05-08-2015, 08:02 AM   #3
intmail01
Member
 
Registered: May 2013
Posts: 99

Original Poster
Rep: Reputation: Disabled
User "root" or any other user shows the same problems.
 
Old 05-08-2015, 08:13 AM   #4
intmail01
Member
 
Registered: May 2013
Posts: 99

Original Poster
Rep: Reputation: Disabled
/var/log/lastlog contains suspicious data. There are many '@' like this:

@@@@@@ LU/dev/tty1 @@@@ GU/dev/tty2@@@@@@@@@-?U/dev/pts/0@@@@

I checked /var/log/messages /var/log/dmesg /var/log/syslog but nothing wrong.
Other files seem ok: /etc/passwd /etc/shadow
 
Old 05-08-2015, 08:56 AM   #5
intmail01
Member
 
Registered: May 2013
Posts: 99

Original Poster
Rep: Reputation: Disabled
I copy /var/log/lastlog to another machine and try to understand what it contains: root user is connected on /dev/tty when I power on the first time the server this morning. Strange! at this moment I did not type any thing because the monitor was still disconnected. Also, until now I reboot the machine several time. I run the server at 9AM; now is 05PM
 
Old 05-10-2015, 03:19 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
"/var/log/lastlog" is (a sparse binary file) meant to be read by 'lastlog'. Also note you have not indicated that you have checked all I pointed out.
 
  


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
[SOLVED] Trying to set up a "clean" chroot login at console in Slackware - can't login Eldarby Slackware 4 07-28-2013 09:35 AM
how to disable "last login log" & disable "last login message" when start login. hocheetiong Linux - Newbie 4 02-08-2011 05:35 AM
"cant login, login incorrect"init : Id "x" respawning too fast:disabled for 5 minutes allenwoxx Linux - Newbie 1 11-21-2008 10:45 AM
Howto disable "Graphical Login" or "Standard Login?" the_gripmaster Red Hat 1 07-08-2004 02:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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