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

How to modify root permissions in Linux system

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

It is believed that many inexperienced people do not know what to do about how to modify root permissions in Linux system. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

Root is a super user in the Linux system, and one of the most important knowledge points for Linux beginners is root permissions, so how to set root permissions?

We have to set root permissions, because in some cases, we will need the password of root to install something, so first introduce the password that needs to be done called passwd to set root, which is very similar to Windows in Linux, that is, there is a super administrator, but the super administrator of Linux, we call it root, and Windows is called Administrator, so our passwd sets root. Then our Super Admin password is set. Because we are now ordinary users who want to set higher privileges, it is obvious that it is not recognized to directly operate the command operating system. So we have to add a prefix called sudo provided to us in the Ubuntu system. This prefix command is equivalent to improving the privileges of our ordinary users, so, for you in the future, when we operate the configuration files related to the system, we often need to use a command like sudo on ordinary users to form the whole operation together with the following commands.

So the main role of sudo is to elevate privileges. After clicking the enter key, it will ask itself what the password is and then enter it and start typing the new password, which is the password of root, which is the same as its own password, of course, and then the password is entered successfully. Remember that during the password setting process, unlike Windows, the password will not be shown and hidden, so you will not see it when you enter the password.

So for security reasons, Linux is right, so passwords are hidden.

The command to switch users is su (for upgrading from ordinary users to root users, as long as nothing is followed by the horizontal line) plus-(the function of the horizontal line is to change the environment variables together, for example, when I go from room to room, I take everything from my room to another room).

After clicking enter, you will start to enter the password, which is the password of root. After entering, we will find that it has changed from rocky to root, indicating that we are now operating and configuring the system as root.

It doesn't matter if you don't deserve it, just default that the password of rocky is the password of root. *

What are the versions of Linux? the versions of Linux are Deepin, UbuntuKylin, Manjaro, LinuxMint, Ubuntu and so on. Among them, Deepin is one of the best-developed Linux distributions in China; UbuntuKylin is a derivative release based on Ubuntu; Manjaro is a Linux release based on Arch; LinuxMint's default Cinnamon desktop is similar to Windows XP's easy-to-use; Ubuntu is the Linux operating system based on desktop applications.

After reading the above, have you mastered how the Linux system modifies root permissions? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

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

Development

Wechat

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

12
Report