In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "how to activate Ubuntu root account to switch identities". Friends who are interested may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to activate the Ubuntu root account to switch identities.
Activate Ubuntu's root account
The Ubuntu root account is disabled by default. In this case, if you want to use Ubuntu root permissions to do something, you need the sudo instruction. For some friends, they may need to activate their root account in Ubuntu.
The procedure for activating a root account in Ubuntu is as follows:
1. After the terminal executes the sudo passwd root command, you will be prompted to set a new Ubuntu root account password. When you are not authenticated by the current user password, you are also required to enter the current user password before you can set a new Ubuntu root password.
two。 Click the System-> Preferences-> Login Window menu, switch to the Security options page, and select the "Allow local system administrator login" option under it.
After performing the above two steps, you can log in to the Ubuntu system using your root account. If you want to disable the Ubuntu root account again, you can execute sudo passwd-l root. Most people who are new to ubuntu (base on debian) don't know why because they don't prompt for a root password in their installation. According to the Chinese documents of ubuntu, this paper is summarized.
Keywords: how to set / change / enable the password of Ubuntu root users?
Sudo passwd root
To enable the Ubuntu root account (that is, to set a password), use:
Sudo passwd root
When you have finished using it, block the Ubuntu root account to use:
Sudo passwd-l root
This will lock the root account.
How do I switch to Ubuntu root identity in terminal mode?
Sudo-s-H Password: the benefits of disabling root by default include the following. At first, the Ubuntu team wanted the installation to be as simple as possible. Without root, two user interaction steps during installation can be omitted.
Furthermore, if Ubuntu root is used in an installation, users will be asked to always remember their chosen password-even if they rarely use it. Root passwords are often forgotten by users who are not familiar with the Unix security model.
It prevents "I can do anything" when logging in by default-you will be prompted for a password before a big change occurs, which allows you to consider the result of doing so. If you log in as Ubuntu root, you can delete some "useless folders" and don't realize you're in the wrong directory, when it's too late. Instead of staying in root shell-- for a long time using "su-command- ^ D" exercises under Unix, unless you do serious system maintenance (then you can still use "sudo su").
Sudo added logging for running commands (in / var/log/auth.log). If you are in trouble, you can always go back and see the commands that are running.
At this point, I believe you have a deeper understanding of "how to activate Ubuntu root account switching identity". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue 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.