ubuntu14.04 Root User Login method

Source: Internet
Author: User

If you are just installed ubuntu14.04 system, you go in as a normal user login, many operations do not have permissions, to obtain full access to the root user can log in

1, first unlock the root, set the password for the root user
Open terminal input: sudo passwd
Password: <---Enter your current user's password
Enter New UNIX Password: <---The user password
Retype new UNIX Password: <---Repeat root password
passwd: Password was updated successfully

Enter sudo su

If you display your name as rootxxxxxxxx#, the setting is successful.


2. Need to modify the options in the/etc/passwd

Can vi/etc/passwd

And then find your name, and change the 2 1000 back to 0.

And then quit.


3. An important step: to modify the/etc/lightdm/lightdm.conf

Vi/etc/lightdm/lightdm.conf

The modified file should be:

[Seatdefaults]
Greeter-session=unity-greeter
User-session=ubuntu
Greeter-show-manual-login=true #手工输入登陆系统的用户名和密码
Allow-guest=false #不允许guest登录

If the original/etc/lightdm/path does not lightdm.conf this file, you can create a new lightdm.conf outside, copy the above text, and then copy the CP command to the/etc/lightdm/

Okay, we can reboot.


If there is a problem with the settings, the system does not enter the root user option, only the guest option, you can restart the computer, the boot process long press SHIFT, then select Advanced Mode, enter recover mode, log in as root, to see if the above changes are problematic, You can edit a file with the VI command

If you find that the file is Read-only mode, you can first execute the command:

Mount-o remount RW/

And then chmod 777 file names to modify files permissions on it




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.