This is a discussion on root deleted within the Linux software forums, part of the Linux Getting Started category; Hi, i deleted the root id on Linux system, can it be recover? any help are appreciated. Thanks in advance ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
| Sponsored Links | ||
|
|
|
||||
|
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 Code:
mount -rw -o remount / Code:
adduser root passwd root reboot 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 |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| httpd.conf deleted! How to re-generate? Any Scripts? | vivekv | Shell scripting | 1 | 07-17-2008 06:13 PM |
| Linux kernel deleted from /boot - how do I resinstall the kernel | vaibhav.kanchan | Getting started tutorials | 2 | 03-25-2008 01:31 AM |
| httpd.conf deleted! How to re-generate? | vivekv | Getting started tutorials | 2 | 01-17-2008 04:45 PM |
| how to recover deleted files using script | soma | Shell scripting | 2 | 06-22-2005 08:18 PM |
| Deleted SWAP partition | sonaikar | Linux software | 1 | 02-05-2005 07:20 PM |