In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-12 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the method of switching from linux to root user mode, which has certain reference value and can be used for reference by friends who need it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.
After the default installation is completed, we use the current user permissions to enter the linux system, but we need to use the root account permissions for many operations.
The first command to enter the console is crtl+Alt+T.
The password of the root user is not known after the default installation is completed. The ways to use root permissions are as follows:
1. Sudo command
Ubnutu64@ubuntu:~$ sudo
In this way, you can get the permission of the superuser by entering the current user password. But by default, root permissions are invalidated in 5 minutes.
2. Sudo-I
Ubnutu64@ubuntu:~$ sudo-I
You can enter the root user by entering the current user password in this way.
3. Use root users
If this is your first time using a root account, we first need to reset the password of the root user:
Ubnutu64@ubuntu:~$ sudo passwd root
After that, the system will ask you to enter the password of your root account twice. After confirmation, the password will be set, and then you can switch to the root user through step 4.
4. Switch to root user
Ubnutu64@ubuntu:~$ su. Enter the root password
5. Quit root users
Root@ubuntu:# exit thank you for reading this article carefully. I hope it will be helpful for everyone to share the method of switching from linux to root user mode. At the same time, I also hope you can support us, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you to learn!
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.