CentOS 7 All Terminal Autologin

# rm /etc/systemd/system/getty.target.wants/getty@tty1.service

# cp /lib/systemd/system/getty@.service /etc/systemd/system/getty@tty1.service

edit this file (the last line, must be ADDED):

[Service]

ExecStart=-/sbin/agetty –autologin root –noclear %I

[Install]

;Alias=getty@tty1.service

# ln -s /etc/systemd/system/getty@tty1.service /etc/systemd/system/getty.target.wants/getty@tty1.service

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *