(转载)ubuntu解决root登陆报stdin:is not tty

  1. 首先显示root账户登录系统时候报错的提示。错误提示为:Error found when loading /root/.profile stdin: is not a tty。如图所示。

     

  2.  

    首先我们点击确定,进入系统后进行更改。打开终端。

    执行命令nano /root/.profile命令对文件进行修改。

     

  3.  

    在打开文件后,我们把mesg n 进行注释,增加一行 tty -s && mesg n。

    进行保存。

     


     

  4.  

    然后执行命令init 6。

    进行系统的重启。

     

  5.  

    系统重启后,在系统登录界面,用户名处输入root,按回车,

    然后输入正确密码按回车。

     

  6.  

    可以看到使用root账户登录的错误提示已经消失。

    稍等下直接进入主界面。

     

  7.  

  8. 原文地址:http://jingyan.baidu.com/article/d5c4b52be0807fda560dc586.html
posted @ 2016-09-28 00:28  重新发明轮子  阅读(546)  评论(0)    收藏  举报