You are not logged in.

#1 2013-01-24 10:41:19

fouad_jh
Member
Registered: 2013-01-24
Posts: 4

Serial Console Login "Login incorrect"

Hi all

I just installed Arch Linux on x86 PC, I can login as root from the terminal using a keyboard.

I have configured Arch Linux to be able to use the console through USB to serial converter, I have configured all to communicate right, when I boot Arch Linux PC, while another PC connected through serial port, I get the login prompt, I use the other PC with the root user name and password, I get "loging incorrect" error

Am I missing anything?

Thanks

F

Offline

#2 2013-01-25 05:52:08

hunterthomson
Member
Registered: 2008-06-22
Posts: 794
Website

Re: Serial Console Login "Login incorrect"

Hum well, I wrote the "GRUB2 and systemd" of the wiki

https://wiki.archlinux.org/index.php/Wo … nd_systemd

I personally have it configured with the first option i.e. setting up GRUB2 and letting systemd figure it out on it's own. I have no problem logging in as the root user, with no extra configuration.

What serial console program are you using, minicom?


OpenBSD-current Thinkpad X230, i7-3520M, 16GB CL9 Kingston, Samsung 830 256GB
Contributor: linux-grsec

Offline

#3 2013-01-25 06:14:29

djgera
Developer
From: Buenos Aires - Argentina
Registered: 2008-12-24
Posts: 723
Website

Re: Serial Console Login "Login incorrect"

add ttyUSB0 to /etc/securetty wink

Offline

#4 2013-01-25 06:36:11

hunterthomson
Member
Registered: 2008-06-22
Posts: 794
Website

Re: Serial Console Login "Login incorrect"

djgera wrote:

add ttyUSB0 to /etc/securetty wink

Awe yes, that is the problem. I was thinking about the securetty file but forgot that he said it was a USB-to-serial adapter, so I figured "well ttyS0 should be in there..."


OpenBSD-current Thinkpad X230, i7-3520M, 16GB CL9 Kingston, Samsung 830 256GB
Contributor: linux-grsec

Offline

#5 2013-01-25 06:49:42

fouad_jh
Member
Registered: 2013-01-24
Posts: 4

Re: Serial Console Login "Login incorrect"

Hi, thanks for your replies, I just added it and worked fine. Thanks

How about SSH? is it something to do with SSH configurations? /etc/secyretty? or /etc/security/access.conf?

I will be trying to figure it out, but if you have come across it before, then will be handy.

Thanks

Offline

#6 2013-01-25 06:57:51

fouad_jh
Member
Registered: 2013-01-24
Posts: 4

Re: Serial Console Login "Login incorrect"

For SSH login, I had to un-comment "PermitRootLogin yes" in /etc/ssh/sshd_config

Thanks

Offline

#7 2013-01-25 09:24:14

hunterthomson
Member
Registered: 2008-06-22
Posts: 794
Website

Re: Serial Console Login "Login incorrect"

fouad_jh wrote:

For SSH login, I had to un-comment "PermitRootLogin yes" in /etc/ssh/sshd_config

Thanks

No,
Do not allow root login from SSH.
Every robot and worm ever made hammers the root user account on every SSH daemon they can find. Login to SSH as a normal user and then use the `su` command to become the root user.

Last edited by hunterthomson (2013-01-25 09:26:12)


OpenBSD-current Thinkpad X230, i7-3520M, 16GB CL9 Kingston, Samsung 830 256GB
Contributor: linux-grsec

Offline

#8 2013-01-25 09:29:38

fouad_jh
Member
Registered: 2013-01-24
Posts: 4

Re: Serial Console Login "Login incorrect"

hunterthomson wrote:
fouad_jh wrote:

For SSH login, I had to un-comment "PermitRootLogin yes" in /etc/ssh/sshd_config

Thanks

No,
Do not allow root login from SSH.
Every robot and worm ever made hammers the root user account on every SSH daemon they can find. Login to SSH as a normal user and then use the `su` command to become the root user.

Thanks, for the purpose of what I am doing, is not really a big deal, but I agree with what you said, it would be much safer.

Offline

Board footer

Powered by FluxBB