串口启用密码或者不用密码的配置方法(/etc/inittab)

/etc/inittab

要密码

console::respawn:/sbin/getty -L  console 0 vt100

不用输入密码

::askfirst:-/bin/sh

 

例如:

# Put a getty on the serial port
#console::respawn:/sbin/getty -L console 0 vt100 # GENERIC_SERIAL
::askfirst:-/bin/sh

posted @ 2025-07-24 15:08  ahuo  阅读(22)  评论(0)    收藏  举报