1024programmer Linux How to reset password forgot linux password-linux operation and maintenance

How to reset password forgot linux password-linux operation and maintenance

How to reset the linux password if you forget the password: first, type “e” on the kernel; then change the content to “rw rd.break” in the linux16 line; then enter the emergency mode of the system And enter passwd and other commands in turn; finally restart the service.

4. Enter the following commands in turn

# chroot /sysroot //Enter the root directory of the system
 # passwd // reset password
 # touch /.autorelabel //Create a file to allow the system to recognize changes when it restarts
 # exit exit chroot mode
 # reboot //Restart the system

The above are the details of how to reset the password for linux if you forget the password. For more information, please pay attention to other related articles on 1024programmer.com!

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/how-to-reset-password-forgot-linux-password-linux-operation-and-maintenance/

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索