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

Summary of some points to note when registering Tomcat as a service

Here are some points to note when registering Tom...

How to open ports to the outside world in Alibaba Cloud Centos7.X

In a word: if you buy a cloud server from any maj...

How to insert a link in html

Each web page has an address, identified by a URL...

Implement full screen and monitor exit full screen in Vue

Table of contents Preface: Implementation steps: ...

How to obtain root permissions in a docker container

First, your container must be running You can vie...

How to install and configure the Docker Compose orchestration tool in Docker.v19

1. Introduction to Compose Compose is a tool for ...

Summary of Vue's monitoring of keyboard events

Key Modifiers When listening for keyboard events,...

CSS Summary Notes: Examples of Transformations, Transitions, and Animations

1. Transition Transition property usage: transiti...

Full analysis of MySQL INT type

Preface: Integer is one of the most commonly used...

Docker batch start and close all containers

In Docker Start all container commands docker sta...

vue.config.js packaging optimization configuration

The information on Baidu is so diverse that it...

Use CSS to easily implement some frequently appearing weird buttons

background In the group, some students will ask r...

CentOS7 configuration Alibaba Cloud yum source method code

Open the centos yum folder Enter the command cd /...

WeChat applet realizes the effect of shaking the sieve

This article shares the specific code of the WeCh...