嵌入式爱好者

Ubuntu 18.04开机免密root用户自动登录

2022-12-26 08:53| 发布者: hai| 查看: 382| 评论: 0|原作者: hai

类目: 知识库  >  LS1012A/LS1043A/LS1046A系列产品     文档编号: 868

Ubuntu 18.04串口终端开机免密自动登录

serial getty开机设置选项

ubuntu18.04已经不再使用initd管理系统,改用systemd

serial getty

打开文件 vim /lib/systemd/system/serial-getty\@.service

开机设置选项

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

文件部分内容展示

  [Service]
# The '-o' option value tells agetty to replace 'login' arguments with an
# option to preserve environment (-p), followed by '--' for safety, and then
# the entered username.
ExecStart=-/sbin/agetty --autologin root --noclear %I $TERM
Type=idle
Restart=always
UtmpIdentifier=%I
TTYPath=/dev/%I
TTYReset=yes
TTYVHangup=yes
KillMode=process
IgnoreSIGPIPE=nostem/serial-getty@.service" 46L, 1468C
SendSIGHUP=yes



已解决

未解决

只是看看

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-5-3 07:55

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

返回顶部