Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Reset Linux Admin Password

Fedora

  • Press ESC at the GRUB prompt.
  • Press e for edit. Highlight the line that begins kernel or linux press e 
  • Go to the very end of the line and add
  •  rw init=/bin/bash 
  • Press Ctrl+X to boot or Press Enter, then press b to boot your system. 

mount -o remount,rw /
passwd root
touch /.autorelabel
sbin/reboot -f
Takes 5 minutes to restart

Ubuntu 

Boot into recovery mode then select shell.

mount -o remount,rw /
passwd root
exit

General 

 

passwd -d root # to delete


This post first appeared on SMARTMANOJ, please read the originial post: here

Share the post

Reset Linux Admin Password

×

Subscribe to Smartmanoj

Get updates delivered right to your inbox!

Thank you for your subscription

×