LINUX学习

设置root登录

Ubuntu想要用root帐户登录,可在普通帐户权限下打开终端,输入

 

[plain]  view plain  copy
 
  1. cd /usr/share/lightdm/lightdm.conf.d  

在打开的文档后加

 

 

[plain]  view plain  copy
 
  1. greeter-show-manual-login=true  

 

保存


如果还没给root帐户设置密码的在终端输入

 

[plain]  view plain  copy
 
  1. sudo passwd root  

输入密码,详细看

 

http://blog.csdn.net/wu_wxc/article/details/48861891

设置好后重启,

终端输入

 

[plain]  view plain  copy
 
  1. reboot  

等启动后点击登录 >> 输入root >> 输入密码 >> 登录

 


登录后打开终端

可以看到是

root@wu:~#

root超级管理员帐户登录的

 

 

二、错误出现

登录后如果出现

Error found when loading /root/.profile:

stdin:is not a tty

As result the session will not be configured correctly.

You should fix the problem as soon as feasible.

解决方法

终端输入

 

[plain]  view plain  copy
 
  1. gedit /root/.profile  

在打开的文档找到

[plain]  view plain  copy
 
  1. mesg n  

把它改为

[plain]  view plain  copy
 
  1. tty -s && mesg n  

 

我是把它注释掉,重写一行的

当然,这一步可以在前面设置管理员root登录时完成,用root权限sudo执行就行

保存,重启系统

OK

 

转载于:https://www.cnblogs.com/jackieron/p/5997803.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值