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

The method of modifying root password under linux system

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

Share

Shulou(Shulou.com)06/02 Report--

How to change the root password under linux system? This problem may be often seen in our daily study or work. I hope you can gain a lot from this question. The following is the reference content that the editor brings to you, let's take a look at it!

Linux can modify the root password by directly changing the password when the user has the sudo authority, and when the user does not have the permission, you can press the Shift key for a long time to enter the Ubuntu advanced options in the GRUB map mode to configure.

Linux uses the current non-root methods to change the password of root users:

First: the current user has sudo permission

When a user has sudo permission, he / she can change the password directly by using the following methods:

Sudo su root # passwd

Use the command: sudo passwd root

The second kind: when the user does not have sudo permission

Restart the lunix system and press Shift during startup to enter GRUB map mode

Select the Ubuntu Advanced option and press Enter to enter the environment

Then press the e key to enter the recovery mode to enter the startup parameters, press the page down to see the penultimate line of recovery nomodeset to delete

Then add quiet splash rw init=/bin/bash where it is deleted and press F10 to start it.

After the correct configuration, the system goes directly to root mode after running. Type: passwd, and you will be prompted to enter a new password.

Note: if the following error occurs, follow the prompts to install it correctly.

Thank you for reading! After reading the above, do you have a general idea of how to change the root password under the linux system? I hope the content of the article will be helpful to all of you. If you want to know more about the relevant articles, you are welcome to follow the industry information channel.

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

Wechat

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

12
Report