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 activate a root account in Ubuntu

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces "how to activate the root account in Ubuntu". In the daily operation, I believe that many people have doubts about how to activate the root account in Ubuntu. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "how to activate the root account in Ubuntu". Next, please follow the editor to study!

Use the command on the terminal after installing Ubuntu root: su-

Then enter the password, which is always incorrect.

It turns out that I did not set the ROOT password.

The method to set the ROOT password is as follows:

Open the terminal and enter the following command:

Sudo passwd root

Then enter the password and press the "confirm" button to OK.

The root account in Ubuntu 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 root account 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 Ubuntu root account. If you want to disable the Ubuntu root account again, you can execute sudo passwd-l root.

Network card configuration

Providing network services is the main significance of Server, so the step is to ensure access to the network.

There is an opportunity to configure the network card during the installation of the system. If it goes smoothly, the www.britepic.org can be connected normally after it is installed. To modify the configuration, or to use a separate driver, you need to configure the network card manually. The method is to modify the / etc/network/interfaces file (editors such as vi or nano are available, the same below).

* Block Nic configuration

Auto eth0

Iface eth0 inet static

Address 192.168.0.80

Netmask 255.255.255.0

Gateway 192.168.0.1

The above is the case of static IP. If the address is obtained dynamically, you only need to change static to dhcp without the following parameters.

At this point, the study on "how to activate the root account in Ubuntu" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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

Servers

Wechat

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

12
Report