1. 程式人生 > >Ubuntu 獲取 root 使用者許可權並以 root許可權登入

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