In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article analyzes "how Linux gets root access". The content is detailed and easy to understand. Friends who are interested in "how to get Linux access to root" can follow the editor's train of thought to read it in depth. I hope it will be helpful to everyone after reading. Let's follow the editor to learn more about "how to get root permission from Linux".
We all know that in Linux, root is the super administrator with the highest permissions, and sometimes you have to use the identity of root to execute because of some need. This article will explain how Linux gets root permissions.
Methods are divided into permanent acquisition of root permissions and non-permanent acquisition of Root permissions.
Non-permanent access to Root:
Non-permanent access to Root allows you to prefix the command we are typing with sudo.
For example, the command we want to type is: rm, which is executed by the Root user: sudo rm
So it's very inconvenient to type sudo before every command that requires Root permission. How can you permanently get root permission in a session?
Permanently obtain Root permissions:
The first method is to obtain root permission temporarily and use root permission to change the password of the root user. Then use the su command to type in the root password we just changed.
The specific operations are as follows:
Sudo passwd
After typing the password of the current user, enter the new password of the root user twice, thus changing the password of the root user.
Then enter
Sudo su
Then enter the password of the current user to log in to the terminal as the root user.
You must pay attention to the highest authority of the root owner, so you can execute a lot of dangerous commands, and you must keep a clear head when using root. To avoid tragedies.
About Linux how to get root permissions to share here, I hope that the above content can make you improve. If you want to learn more knowledge, please pay more attention to the editor's updates. Thank you for following 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.