Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Jul 03, 2011 11:16 am 
Offline
Newbie

Joined: Sun Jul 03, 2011 11:08 am
Posts: 3
Sth. wrong with the ssh service on my sever today. So I do not have access to my server by a ssh client.
I try to login my server as root using the Lish Ajax Console, but every time I type the username as root, no password input pop out, instead, the error message Incorrect Login show up.
Which mean I can not log in as root from this Lish Ajax Console.
I reboot to the rescue mode, which is called Finnix Media.
Try to modify the /etc/securetty add hvc0 and tty1 here to grant access to root under Lish Ajax Console.
But still I can not input password for root after reboot.
So I am wondering how can I get root access now?
Any help will be highly appreciated!
Thanks & Regards


Top
   
 Post subject:
PostPosted: Sun Jul 03, 2011 11:20 am 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
You are missing hvc0 (or tty1) in your securetty file. Did you edit the correct securetty?

1) Reboot into rescue mode
2) mount /dev/xvd[whatever]
3) vi /mnt/xvd[whatever]/etc/securetty <-- change it there
4) Reboot back into your distro

-Chris


Top
   
 Post subject:
PostPosted: Sun Jul 03, 2011 8:43 pm 
Offline
Newbie

Joined: Sun Jul 03, 2011 11:08 am
Posts: 3
Hi Chris
When I boot in my default distro, it is tty1, I am sure about this.
I do try to edit the /etc/securetty file when I boot in rescue mode.
But under the rescure mode, I can not save the changes I have made.
Either vi or nano, after I revised the file, ctrl+x do not quit. So I asked one of your tech support to help me revise the sceuretty file save make sure the tty1 is include in securetty.
I reboot to my default distro by ajax console, still the same problem, I can not login as root.


Top
   
 Post subject:
PostPosted: Sun Jul 03, 2011 9:06 pm 
Offline
Newbie

Joined: Sun Jul 03, 2011 11:08 am
Posts: 3
this is the securetty file content on my server

# /etc/securetty: list of terminals on which root is allowed to login.
# See securetty(5) and login(1).
console

# Standard serial ports
ttyS0
ttyS1
tty1
hvc0
# USB dongles
ttyUSB0
ttyUSB1
ttyUSB2

# Embedded MPC platforms
ttyPSC0
ttyPSC1
ttyPSC2
ttyPSC3
ttyPSC4
ttyPSC5


Top
   
 Post subject:
PostPosted: Mon Jul 04, 2011 9:57 am 
Offline
Senior Member

Joined: Fri Jan 09, 2009 5:32 pm
Posts: 634
carlosun wrote:
Hi Chris
When I boot in my default distro, it is tty1, I am sure about this.
I do try to edit the /etc/securetty file when I boot in rescue mode.
But under the rescure mode, I can not save the changes I have made.
Either vi or nano, after I revised the file, ctrl+x do not quit. So I asked one of your tech support to help me revise the sceuretty file save make sure the tty1 is include in securetty.
I reboot to my default distro by ajax console, still the same problem, I can not login as root.


using the lish console is hvc0, not tty1


Top
   
 Post subject:
PostPosted: Mon Jul 04, 2011 9:58 am 
Offline
Senior Member

Joined: Fri Jan 09, 2009 5:32 pm
Posts: 634
carlosun wrote:
this is the securetty file content on my server


Is this when you're booted normally or in rescue mode?


Top
   
 Post subject:
PostPosted: Mon Jul 04, 2011 11:14 am 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
Edit the correct securetty file, as per my instructions.

-Chris


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group