Can not login as root from the Lish Ajax Console
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
6 Replies
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
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.
/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
@carlosun:
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
@carlosun:
this is the securetty file content on my server
Is this when you're booted normally or in rescue mode?