Re: Allowing login via (serial) console by default
On Wed, Dec 19, 2018 at 01:58:26PM +0100, Vincent Caron wrote:
> I've been using permanent login-less consoles in my LXC containers,
> because it's very convenient. They actually launch 'getty -l bash ttyXX'
> which bypasses the password issue. Thus from my point of view having a
> login-less access is orthogonal to the root password question - and actually
> I prefer root having no password (and thus no possible interactive login).
Hmm, thats a different solution. Just overriding the getty launched by
serial-getty@.service with the following should force it to auto-login
as root:
| ExecStart=-/sbin/agetty --autologin root -o '-p -- -f \\u' --keep-baud 115200,38400,9600 %I $TERM
Thanks for the suggestion.
Regards,
Bastian
--
"Life and death are seldom logical."
"But attaining a desired goal always is."
-- McCoy and Spock, "The Galileo Seven", stardate 2821.7
Reply to: