Ylmf OS 3.0 assigns a method to modify the management permissions of logged-on root users

Source: Internet
Author: User
Ylmf was modified from the Ubuntu system and has a distinctive feature like ubuntu,
That is, when you use it for the first time, you cannot act as the root user.
To log on to the system. Why? This should begin with the installation of the system. For other Linux systems, the root password is usually set during the installation process, so that users can use it to log on to the root account.
Or use the su command to convert to the Super User identity. In contrast, UBUNTU does not set a password for the root user or enable the root account when it is installed by default. It is easy to set the password for assigning a root Super User. Just set a root password for the root user: $ Sudopasswd Root
You will be prompted to enter the root user password, enter the root password continuously, and then use: $ su
You can switch to the super administrator user to log on!
1. After executing the sudo passwd root command on the terminal, the system will prompt you to set a new root account password.

2. choose system> System Management> loginwindow, switch to the security option page, and select the "Allow Local systemadministrator login" option.
After performing the preceding two steps, you can use the root account to log on to the Ubuntu system.

If you want to disable the root account again, run sudo passwd-l root.

======================================
Method 2:
Use the root account to log on to Ubuntu

In fact, I personally think this is not necessary, because when you need the root permission, you can use sudo. If you need to enable the root account in Ubuntu, perform the following operations:

1. Reset the root password:

$ Sudo passwd root # Enter the new password twice as prompted and confirm it.

2. Enable Root User Logon:

$ Sudo VI/etc/TPD. conf #

Open the gnome configuration file, input: allowroot press enter in the last line mode, find allowroot = false, change false to true, save and exit.

After that, you can log on to the system as the root user. If you want to disable the root account, run the following command:

$ Sudo passwd-l Root

The root account in Ubuntu is disabled by default. In this case, if you want to use the root permission to do something, you need the sudo command. For some friends, they may need to activate the root account in Ubuntu.

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.