nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

root deleted

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 ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 10-17-2006, 09:23 PM
Junior Member
 
Join Date: Oct 2006
Posts: 1
Rep Power: 0
lschia
Default root deleted

Hi,

i deleted the root id on Linux system, can it be recover?

any help are appreciated.

Thanks in advance

lschia
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-18-2006, 03:34 AM
rockdalinux's Avatar
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
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT +5.5. The time now is 01:17 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36