Ubuntu启用root账户后,登录root账户时报错:读取/root/.profile时发现错误:mesg:ttyname failed:对设备不适当的ioctl操作 作为结果,会话不会被正确配置
- 方法一:
将/root/.profile文件中的mesg n
替换成tty -s && mesg n
重启
- 方法二:
将非root账户目录中的.profile复制到/root/:
例如:cp /home/username/.profile /root/
重启
将/root/.profile文件中的mesg n
替换成tty -s && mesg n
重启
将非root账户目录中的.profile复制到/root/:
例如:cp /home/username/.profile /root/
重启