您的位置:首页 > 其它

Ubuntu12.04 root登陆

2012-05-03 21:39 218 查看
Follow the below steps to Login as a root From GUI in Ubuntu 12.04 LTS Precise Pangolin

1)Login
as a normal user which you have created during Installation.

2)Click
on[b]Unity
DashandSearch
for Terminal
and OpenTerminal[/b]

3)Execute
Below Command.

sudo
passwd root


[sudo] password for tejasbarot: ****** <——– Enter your Current User password from which you have logged in from GUI—->

Enter new UNIX password: ****** < ———Enter New password which you want to set for root user ——>

Retype
new UNIX password: ****** < ———
Retype New password which you want to set for root user ——>

4)That’s
It. You have successfully Setup Your root user’s password. Now Log out from Current User.

5)
If No “Other Option on Login screen than please click on this linkhttp://www.tejasbarot.com/2012/04/30/howto-other-login-option-on-login-screen-ubuntu-12-04-lts-precise-pangolin/On
Login Screen, Type Username (root
)
and password which you have setted up in step 3.

DO
IT AT YOUR OWN RISK.


1)
You have to be root to perform this how-to
.

If you are not root then be root by executing following command :-

ubuntu-12.04lts@tejas-barot-linux-ahmedabad:~$sudo
su – ( Single Hyphen )


2)
First of all Please take backup of original file, execute following command :-

root@tejas-barot-linux-ahmedabad:~#cp
-p /etc/lightdm/lightdm.conf /etc/lightdm/lightdm.conf.orig


3)Now
Open/etc/lightdm/lightdm.conf,
Execute Following command :-

root@tejas-barot-linux-ahmedabad:~#vi
/etc/lightdm/lightdm.conf


4)Now Please enter following line to [SeatDefaults] Selection:-

greeter-show-manual-login=true

For Example your/etc/lightdm/lightdm.confshould
look like below :-

[SeatDefaults]

greeter-session=unity-greeter

user-session=ubuntu

greeter-show-manual-login=true

Now
Save and Exit from file. ( ESC and :wq ).


5)
Now reboot Ubuntu 12.04 LTS Precise Pangolin, You will able to see “OTHER” Or Login window which asks for Username and Password on Login screen/Window.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: