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