In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly analyzes the relevant knowledge points of ordinary users how to switch root methods in Linux system, the content is detailed and easy to understand, the operation details are reasonable, and has a certain reference value. If you are interested, you might as well follow the editor to have a look, and follow the editor to learn more about "how ordinary users switch root methods in the Linux system".
Introduction to ROOT: ROOT exists in UNIX systems (such as AIX, BSD, etc.) and UNIX-like systems (such as Debian, Redhat, Ubuntu versions of Linux systems and Android systems).
The superuser is generally named root, which is equivalent to the system user in Windows system.
Root is the only superuser in the system, with all the privileges in the system, such as starting or stopping a process, deleting or adding users, adding or disabling hardware, and so on.
The root user is the only super administrator on the system, and it has the same permissions as the operating system.
Some applications that require root permissions, such as ad blocking, require root permissions. The problem is that root is more capable than windows's system administrator to delete most of the files in the entire system, causing the system to be completely destroyed and cannot be used again.
Therefore, improper operation with root is quite dangerous, slightly can crash, serious even can not boot. Therefore, in Unix, Linux, and Android, root is generally not recommended unless it is really needed. It is best to set up an ordinary user separately for daily use.
Linux system switching root user method: (1) sudo command xzm@ubuntu:~$ sudo
In this way, you can get the permission of the superuser by entering the current administrator user password. But by default, root permissions are invalidated in 5 minutes.
(2) sudo-ixzm@ubuntu:~$ sudo-I
You can enter the root user by entering the password of the current administrator user in this way.
(3) if you want to use root permissions all the time, you need to switch to root users through su. Then we first need to reset the password of the root user:
Xzm@ubuntu:~$ sudo passwd root
This allows you to set the password for the root user.
(4) after that, you are free to switch to root users, xzm@ubuntu:~$ su.
Just enter the password of the root user.
Su "king" or exit returns to user rights
Add (set the root user password on the newly installed system):
$is an ordinary administrator, and # is a system administrator. Root users do not have a password by default, so they cannot use it (it is said to be for security). If you want to use root, you have to set a password for the root user: sudo passwd root, then enter the user name root when you log in, and then enter the password.
This is the end of the introduction on "how ordinary users switch root methods in the Linux system". More related content can be searched for previous articles, hoping to help you answer questions and questions, please support the website!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.