Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method for linux to enter root permission

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

How does linux enter root permissions? This problem may be often seen in our daily study or work. I hope you can gain a lot from this question. The following is the reference content that the editor brings to you, let's take a look at it!

Under linux, the default root user of the system is not enabled, which is contrary to the practice of MS windows, windows XP is a good installation of the system, it will create an automatic login administrator user for you, but the difference of Linux also greatly increases the security of the system, but at the same time there are some special requirements for the use of our operations.

It is recommended that you use the permissions of the root user only when you want to modify system settings or install software.

First, enable root account

For desktop operating systems such as Ubuntu, root users are not enabled by default, that is, you cannot log in with root users when you boot. When you enable root users, you should set a password. You can also use the root permissions of other administrator users if you do not enable the root account. Enabling the root account will increase the insecurity of the system.

Method of operation:

Enter sudo passwd root (that is, change the password of root) under the terminal and enter, and then follow the prompts.

2. Temporary use of root permissions under the terminal

Enter sudo + the command you want to execute directly, and enter the current user password according to the prompt

Open a terminal with root permission

Enter sudo su directly [Note: not su]

Enter the password of the root user when the terminal prompts for a password

Of course, if you have special requirements, you must let root users log in to the computer, of course, I can't say

Go to System (system)-> Administration (system Administration)-> Login System (login window)

Open the Security (security) tab and select Allow local administrator login (allow local system administrators to log in), so you can log in to the computer by entering the root user password the next time you boot.

Fifth, for some important operations under the graphics, such as installing software, modifying important system files are to use root permissions, then you will be prompted to enter a password, note that only root permissions are used at this time, not login root users.

When entering the password under the terminal, the entered characters will not be displayed, and you will not see any reaction on the screen, which is normal, for security reasons.

Thank you for reading! After reading the above, do you have a general idea of how linux can gain access to root? I hope the content of the article will be helpful to all of you. If you want to know more about the relevant articles, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report