Ubuntu 获取 root 用户权限并以 root权限登录

操作步骤:

       1、打开终端,使用 sudo passwd root 命令进行 Ubuntu 中密码的重置

       2、切换到 /usr/share/lightdm/lightdm.conf.d 目录

       3、vim 50-unity-greeter.conf 在其中添加如下信息:

       user-session=ubuntu
       greeter-show-manual-login=true
       all-guest=false

       4、vim /root/.profile 并修改其最后一行为 tty -s && mesg n || true

猜你喜欢

转载自www.cnblogs.com/yunwangjun-python-520/p/10064694.html