Login to CentOS 7 without Login Prompt

前端之家收集整理的这篇文章主要介绍了Login to CentOS 7 without Login Prompt前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

Login to CentOS 7 without Login Prompt

[root@testcentos7 ~]# vi /etc/systemd/system/getty.target.wants/getty\@tty1.service 

Find the line

ExecStart=-/sbin/agetty  –noclear %I $TERM

and change to

ExecStart=-/sbin/agetty --autologin root --noclear %I $TERM

Next boot there will be no login prompt for root user

if you want to login console as root without password.change the follow file :

vim /lib/systemd/system/serial-getty@.service

Find the line

ExecStart=-/sbin/agetty --keep-baud 115200,38400,9600 %I $TERM

and change to

ExecStart=-/sbin/agetty --autologin root --keep-baud 115200,38400,9600 %I $TERM
原文链接:https://www.f2er.com/centos/378197.html

猜你在找的CentOS相关文章