(转载)ubuntu解决root登陆报stdin:is not tty
-
首先显示root账户登录系统时候报错的提示。错误提示为:Error found when loading /root/.profile stdin: is not a tty。如图所示。
-
首先我们点击确定,进入系统后进行更改。打开终端。
执行命令nano /root/.profile命令对文件进行修改。
-
在打开文件后,我们把mesg n 进行注释,增加一行 tty -s && mesg n。
进行保存。
-
然后执行命令init 6。
进行系统的重启。
-
系统重启后,在系统登录界面,用户名处输入root,按回车,
然后输入正确密码按回车。
-
可以看到使用root账户登录的错误提示已经消失。
稍等下直接进入主界面。
-
- 原文地址:http://jingyan.baidu.com/article/d5c4b52be0807fda560dc586.html

浙公网安备 33010602011771号