在上文基础上增加autologin-user=root,企图自动登录root账户,结果报错Error found when loading /root/.profile stdin: is not a tty
更改/root/.profile文件
把mesg n 进行注释,增加一行 tty -s && mesg n
然后reboot
自动登录root时Error found when loading /root/.profile stdin: is not a tty
最新推荐文章于 2022-10-10 17:51:30 发布
在尝试使用autologin-user=root自动登录root账户时遇到错误:Error found when loading /root/.profile, stdin: is not tty。通过注释mesgn函数,添加条件检查并重新启动系统解决了问题。
1198

被折叠的 条评论
为什么被折叠?



