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.jb51.cc/centos/378197.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。