Permission for the root account in Ubuntu

Source: Internet
Author: User
How to handle the root account in Ubuntu: & nbsp; 1. disable the appearance of the root account: & nbsp; the following is the entire process of opening the terminal under X for modification: ("//" is followed by a comment) & nbsp; zk @ zkubuntu :~ $ Su & nbsp; // you want to enter the root account Password: & nbsp; // methods for getting the root account under Ubuntu:
 
1. prevent the root account from appearing:
 
The following is the entire process of opening the terminal under X for modification: ("//" is followed by a comment)
 
Zk @ zkubuntu :~ $ Su // you want to enter the root account before you get it done
Password: // enter the Password
Su: Authentication failure // the system prompts "failed ".
Sorry
Zk @ zkubuntu :~ $ Passwd root
// I want to change the root account under a general account (I just want to give it a try)
Passwd: you may not be able to view or change the root password.
Zk @ zkubuntu :~ $ Sudo passwd root // use sudo to modify the root account
Password: // enter the Password
Enter new UNIX password: // success. generally, >_<
Prompt to enter the new root account password
Retype new UNIX password: // repeat the input. no verification error occurs.
Passwd: password updated successfully // the system prompts that the modification is successful.
 
After restarting, log on to your personal account, and then run the following command on the terminal.
Zk @ zkubuntu :~ $ Su // verify whether the verification is successful (in fact, it is redundant, haha)
Password: // enter the Password of the root account
Root @ zkubuntu:/home/zk # su zk // you have logged on successfully and returned to your normal account.
Zk @ zkubuntu :~ $ Fcitx // The Startup Penguin input method writes the above content
Please set XMODIFIERS...
Zk @ zkubuntu :~ $
 
It seems that the root account can only be the first user created after Ubuntu is installed, but the user is generally your own, so you do not need to pay attention to this temporarily.
 
The above only enables direct use of the root account in the terminal, but it does not enable direct use of X to log on to the desktop environment under the root account in Ubuntu. Don't worry, let's continue.
(If you think this is unnecessary, do something else !)
 
2. cannot log on to root from the screen
 
I did not actually solve this problem, but I used an alternative method to get the same result (root login to the desktop environment ).
If anyone finds a way, please tell me (victor...@163.com), thank you first
 
The entire process is as follows:
 
Ctrl + Alt + F1 enter the command line first (not a terminal under the graphic interface)
 
// Start:
 
Zk @ zkubuntu :~ $ Su // enter the root account status. do not rush to finish reading it.
Password:
Root @ zkubuntu :~ #/Etc/init. d/TPD stop // input/etc/init. d/TPD stop
X server stopped
 
// If you execute the above process and press Ctrl + Alt + F7, you will not be able to return to the graphic interface.
// Continue :.
 
Root @ zkubuntu :~ # Start X under startx // root account
Server to enter the graphic interface
 
At this point, you should have entered the GUI under the root account. although you have not entered the GUI under the root account, it is a detour, but the results are the same, try 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.