📜  停用登录 ubuntu 服务器 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:13.583000             🧑  作者: Mango

代码示例1
sudo systemctl edit getty@tty1.service

This will the create a drop-in file (if neccessary) and open it an editor. Add the following, replacing myusername with your user name:

[Service]
ExecStart=
ExecStart=-/sbin/agetty --noissue --autologin myusername %I $TERM
Type=idle