Thread: root deleted
View Single Post

  #2 (permalink)  
Old 10-18-2006, 03:34 AM
rockdalinux's Avatar
rockdalinux rockdalinux is offline
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 581
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

Hi!

Boot server in single user mode. At grub-boot loader screen,

Select kernel type e for edit.

Select the line that starts with kernel and type e to edit the line.

Go to the end of the line and type init=/bin/bash as a separate one word (press the spacebar and then type init=/bin/bash)
Code:
init=/bin/bash
After system boot type the command to remount /
Code:
mount -rw -o remount /
Now add root user using adduser command
Code:
adduser root
passwd root
reboot
Ref:
http://www.cyberciti.biz/nixcraft/vi...w-password.php
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote