|
-
Aug 23rd, 2011, 09:40 AM
#1
Linux file permission
Hello everyone,
I have to admit that I'm not a Linux guy; things seems so simple to do in Windows could give me a hard time figuring out how to do it in Linux world...
I have a Red Hat linux server which the raid controller's gone bad. My task is to recover a web site (all the files, database... related to this web site) on that server and move it to another linux server. The original server had a raid1 configuration and the hard drives themselves are intact. I pull out one of the drives from the dead server and plug it into my test Ubuntu box via an USB to sata adapter. The Ubuntu box can see and mount the drive OK, but there are some folders that I don't have access permissions to... So my questions are:
1. Where is the default location of a web site in a linux box? (that dead server served just 1 single web site, so I think there must be a default location some where that the web site was set up originally). And what are the most likely directories that I can find the web site in if it's not in the default location?
2. How do I go about to change access permission to those locked folders (specifically the "root" folder) so that I can read them?
3. Once I have recovered the web site, where do I put the files/folders in the new server assuming that it'll be the only web site the new server will serve?
Any help will be greatly appreciated.
Thank you,
Stanav.
Last edited by stanav; Aug 23rd, 2011 at 09:48 AM.
Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
- Abraham Lincoln -
-
Aug 23rd, 2011, 12:22 PM
#2
Re: Linux file permission
OK... I got #2 sorted out. Basically, on an Ubuntu box, the user that was created during the OS installation is not really the root user... The actual root user does exist, but we just don't know what the password is to log in as root. So I had to change the password for the root account and the log in as root user => this enables me to access all the files/folders that I had been locked out under my own user account.
I'm still looking for answers to #1 and #3 though...
Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
- Abraham Lincoln -
-
Aug 24th, 2011, 12:50 PM
#3
Re: Linux file permission
Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
save a blobFileStreamDataTable To Text Filemy blog
-
Aug 24th, 2011, 02:35 PM
#4
Banned
Re: Linux file permission
sounds like a fail safe for harddisk theft, maybe the raid has to be fixed by the manufacturer
-
Aug 24th, 2011, 02:51 PM
#5
Re: Linux file permission
I came out that the 2 drives were actually set up in raid0 (stripe) mode, and one of the drive went bad. This was one of the server that we "inherited" from an acquisition of another company. We didn't care much about it while it was running/working and everyone thought that it's not very important, so it was set up to backup to an ftp location and then we all forget about it assuming that the backups are running every day... Then server died. Only then did we realized that the backups did not run for almost a year. The latest backup we have now dated mid Sept. 2010.
Any, since the drives were in raid0, and one of the drive died, there's not much I could recover. So the task of recovering the web site from it has been abandoned. I am now focus on rebuilding the server and use whatever we have from the backups... Looks like everyone in my IT dept (including myself) shall be prepared to have our a.s.ses kicked for this.
Oh well, it is what it is since that is the nature of life
Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
- Abraham Lincoln -
-
Aug 24th, 2011, 03:00 PM
#6
Frenzied Member
Re: Linux file permission
For #1 the answer will be in 1 of 3 files. The first is /etc/apache2/apache.conf
You are looking for the default directory. The other options are the files in /etc/apache2/sites-available and /etc/apache2/sites-enabled
I can't remember the names of the files in these folders but there is only 1 (or sometimes 2) in there. These will hold the location for the websites source code.
As for #3 that really depends on your own setup and where apache expects it to be (as specified in the files mentioned above), but is usually /var/www/html I think.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|