A brief analysis of how to change the root password in Linux suse11 if you forget it

A brief analysis of how to change the root password in Linux suse11 if you forget it

How to solve the problem of forgetting the root password in SUSE Linux

SUSE (Linux operating system)

SUSE (pronounced /ˈsuːsə/) refers to SUSE Linux, a Linux distribution released and maintained by the German company SuSE Linux AG. It is a registered trademark of this company. The first version appeared in early 1994. The company was acquired by Novell in 2004.

1. Restart the machine. After the grub boot interface appears, press F2. Add init=/bin/bash to the option to start Linux. By passing the init=/bin/bash parameter to the kernel, the OS runs bash before running the login program, and a command line appears.

2. Wait for a moment and the (none)#: command line will appear.

3. Enter mount -n / -o remount,rw

4. Enter mount –n /usr

5. Enter cd /usr/bin

6. Enter the passwd command to reset the password. Enter your new password.

7. After the modification is completed, remember to use mount -n / -o remount,ro to set the root file system to its original state.

8. Enter exit to exit the system, restart the system, and log in with the new password

Summarize

The above is the method of changing the forgotten root password of linux suse11 introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!

You may also be interested in:
  • How to modify and reset the root password in Linux (super simple)
  • How to solve the error when connecting to MySQL in Linux: Access denied for user 'root'@'localhost'(using password: YES)
  • How to prevent ordinary users from suing to root in Linux
  • Solution to the problem that there is no file or directory when switching to root by ordinary user in Linux
  • How to set the initial root password in Linux

<<:  Implementation of k8s node rejoining the master cluster

>>:  MySQL column to row conversion, method of merging fields (must read)

Recommend

How to add Nginx proxy configuration to allow only internal IP access

location / { index index.jsp; proxy_next_upstream...

HTML markup language - form

Click here to return to the 123WORDPRESS.COM HTML ...

MySQL view principles and basic operation examples

This article uses examples to illustrate the prin...

Pay attention to the use of HTML tags in web page creation

HTML has attempted to move away from presentation...

Detailed explanation of HTML's <input> tag and how to disable it

Definition and Usage The <input> tag is use...

Detailed explanation of styles in uni-app

Table of contents Styles in uni-app Summarize Sty...

Linux uses bond to implement dual network cards to bind a single IP sample code

In order to provide high availability of the netw...

JavaScript design pattern learning proxy pattern

Table of contents Overview Implementation Protect...

Quickly solve the problem of slow startup after Tomcat reconfiguration

During the configuration of Jenkins+Tomcat server...

How to import and export Cookies and Favorites in FireFox

FireFox is a commonly used browser with many exte...

How to recover files accidentally deleted by rm in Linux environment

Table of contents Preface Is there any hope after...