开启ubuntu14.10的root权限


(1) sudo –s //切换到root权限下

(2) touch /etc/lightdm/lightdm.conf   #新建lightdm.conf

(3) vi /etc/lightdm/lightdm.conf

添加以下内容:

[SeatDefaults]
#
启动后以root身份自动登录
autologin-user=root

greeter-session=unity-greeter
user-session=ubuntu
#手工输入登陆系统的用户名和密码
greeter-show-manual-login=true

#禁用guest用户
allow-guest=false

文件内容最终为:

(4) sudo passwd root 后输入密码   #启动root账户

(5) vi /etc/.profile

 找到mesgn 修改为:tty –s && mesg n

(6) sudo reboot #重新启动电脑

(7) 用root登录系统

猜你喜欢

转载自blog.csdn.net/qq_32693119/article/details/80019894