How to Reset forgotten Root Password in Suse Enterprise Linux

How to Reset forgotten Root Password in Suse Enterprise Linux

by | Jan 27, 2023 | Hosting, Linux, Servers, VPS | 0 comments

To reset forgotten password hard reboot your affected VM or bare metal server, press arrow key to skip boot timeout from grub, then press “e”

How to Reset forgotten Root Password in Suse Enterprise Linux

search for line start with “linuxefi” (some time instead of “linuxefi” you can find “linux” or “linux16”) and press “end” button

 How to Reset forgotten Root Password in Suse Enterprise Linux

at the end of the line type init=/bin/bash then press F10 or ctrl+x to boot

How to Reset forgotten Root Password in Suse Enterprise Linux

now you can will be booted into shell, but it will in readonly mode, to change to read, write mode type following commands

mount -o rw, remount /

after that type

chroot /

How to Reset forgotten Root Password in Suse Enterprise Linux

to reset password type following command followed by user name.

passwd root

then type exit and
type reboot

Enjoy

Written By George Sruthin

Founder of techridez.com, A Tech Enthusiast, Linux lover.

Related Posts

Comments

0 Comments

0 Comments

Submit a Comment

Subscribe For Instant News, Updates, and Discounts

Pin It on Pinterest

Shares
Share This