I have heard of how to recover the password in single-user mode and CD boot. This method applies to redhat linux. However, in suse linux, the password is still required to enter single-user mode, therefore, it is restored in the single-user mode.
The root password method does not work. There is no suse system installation disc at hand, and you can only find other methods. There will always be a solution. The final solution is as follows:
1. Restart the machine. After the grub boot interface appears, add init =/bin/bash to the linux Startup options, by passing the init =/bin/bash parameter to the kernel, the OS runs bash before running the login program, and the command line appears.
2. Wait for a moment (none) #: command line.
3. Enter mount-n/-o remount. rw indicates that the root file system is remounted to read/write. With the read/write permission, you can use the passwd command to change the password.
4. Enter the passwd command to reset the password. Enter a password that you remember, but it doesn't matter if you don't remember it. Now we know the solution.
5. Remember to use mount-n/-o remount after the modification. ro sets the root file system to the original state.