LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-05-2007, 10:24 PM   #1
hypoui
LQ Newbie
 
Registered: Nov 2006
Posts: 5

Rep: Reputation: 0
/root dir was deleted, How to recover?


I deleted the /root dir use the command rm -fr, of course, I was not intend to do so. Can anyone help? I want to make my linux server work well as before.


(My linux distribution is Redhat Enterprise 4 -ES)

Last edited by hypoui; 09-06-2007 at 01:02 AM.
 
Old 09-05-2007, 10:36 PM   #2
lostnhell
Member
 
Registered: Sep 2005
Location: Virginia Beach, VA
Distribution: Slackware-current
Posts: 50

Rep: Reputation: 17
Quote:
Originally Posted by hypoui View Post
I deleted the /root dir use the command rm -fr, of course, I was not intend to do so. Can anyone help? I want to make my linux server work well as before.
As far as I am aware the root directory is just the home directory for the root user, or at least it is for my distribution.

If it hold the same functionality as my distro then you can just recreate it with the following permissions.

root:root rwx--x---
 
Old 09-05-2007, 10:50 PM   #3
hypoui
LQ Newbie
 
Registered: Nov 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Yes, my /root dir is also just the home dir for user root, it contains no important data. Thank God.

I created a new home for root following your instruction, it works. Thanks.
 
Old 09-05-2007, 10:52 PM   #4
lostnhell
Member
 
Registered: Sep 2005
Location: Virginia Beach, VA
Distribution: Slackware-current
Posts: 50

Rep: Reputation: 17
For future reference please include the distribution you use in your posts or profile.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
recover deleted files ashishjen Linux - Newbie 5 02-02-2007 02:23 PM
How to recover deleted file v1nc3nt Linux - Newbie 5 05-23-2006 03:28 AM
How do I recover deleted files? Hector404 Linux - General 5 12-27-2005 01:35 AM
how to recover deleted files sibtay Linux - Software 13 01-22-2005 08:09 PM
Recover deleted files markdw Linux - General 1 12-07-2001 04:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration