Ubuntu12.04 root用戶登錄設(shè)置
ubuntu12.04默認(rèn)是不允許root登錄的,在登錄窗口只能看到普通用戶和訪客登錄。以普通身份登陸Ubuntu后我們需要做一些修改, www.2cto.com
普通用戶登錄后,修改系統(tǒng)配置文件需要切換到超級(jí)用戶模式,在終端窗口里面輸入: sudo -s.然后輸入普通用戶登陸的密碼,回車即可進(jìn)入 root用戶權(quán)限模式.
然后執(zhí)行: vi /etc/lightdm/lightdm.conf.
增加 greeter-show-manual-login=true allow-guest=false . 修改完的整個(gè)配置文件是
[SeatDefaults]
greeter-session=unity-greeter
user-session=ubuntu
greeter-show-manual-login=true #手工輸入登陸系統(tǒng)的用戶名和密碼
allow-guest=false #不允許guest登錄
www.2cto.com
然后我們啟動(dòng)root帳號(hào):
sudo passwd root
根據(jù)提示輸入roott帳號(hào)密碼。
重啟ubuntu,登錄窗口會(huì)有“登錄”選項(xiàng),這時(shí)候我們就可以通過root登錄了。
注意:
ubuntu12.04默認(rèn)使用unity界面,不同的用戶體驗(yàn),但是對(duì)于從上一個(gè)LTS版本過來的我來說,gnome classic界面更容易上手。
首先我們需要安裝gnome shell,sudo apt-get install gnome-session-fallback
記得在登錄框右上選擇gnome(classic)
需要注意的是,12.04的gnome classic和10.04使用上還是有多不同的地方
www.2cto.com
補(bǔ)充:修改vi /etc/lightdm/lightdm.conf
user-session=ubuntu ---> user-session=gnome-classic
默認(rèn)登錄到gnome classic界面,如果不需要特效則是gnome-fallback,對(duì)應(yīng)登錄窗口的選項(xiàng)gnome classic(no effects)
Ubuntu默認(rèn)是關(guān)閉root賬戶,但是可以通過sudo來提升權(quán)限,這種做法也是比較安全的做法。在 Ubuntu 12.04 root用戶登錄設(shè)置 http://www.linuxidc.com/Linux/2012-05/60806.htm 中介紹過在Ubuntu 12.04中使用root登錄。
在Ubuntu 12.10中使用root進(jìn)行登錄方法類似。
先設(shè)定一個(gè)root的密碼,sudo passwd root
1、先設(shè)定一個(gè)root的密碼,sudo passwd root

2、root 登陸,su root
3、備份一下lightgdm
cp -p /etc/lightdm/lightdm.conf /etc/lightdm/lightdm.conf.bak
4、編輯lightdm.conf
sudo gedit /etc/lightdm/lightdm.conf

5、加:
greeter-show-manual-login=true
修改后為:
[SeatDefaults]
greeter-session=unity-greeter
user-session=ubuntu
greeter-show-manual-login=true

重啟登陸即可。已經(jīng)可以輸入root了。
注意:如果root登陸后還沒聲音,又查了查,如下方法:
Ubuntu root登錄沒有聲音這個(gè)問題的根本原因是使用root登錄后pulseaudio沒有啟動(dòng)。
將root加到pulse-access組:
sudo usermod -a -G pulse-access root
然后修改配置文件/etc/default/pulseaudio,將PULSEAUDIO_SYSTEM_START設(shè)為1,
posted on 2013-06-15 01:20
聶文龍 閱讀(5552)
評(píng)論(0) 編輯 收藏 引用 所屬分類:
Linux