Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Due to my inattention, tiredness (and probably stupidity) i've run "chown -R someuser:someuser /" and now all your base are belongs to us the files on the server belong to one user (lol).

After system restart, apache, bind9, mysql, and a dozen other applications don't start and fill their log files with permission errors.

I haven't done any backups on system files, only on the db and website files.

Please suggest some ways to revive my web server. I have only 2 month experience with linux, so please keep it simple.

share|improve this question
up vote 1 down vote accepted

There is no magic solution for problems like this (but backups). You should make one now before more goes wrong.

The simplest possible solution to work your way out of this mess is probably

  • make a backup
  • reinstall all installed packages with (check man dpkg and man aptitude)

    aptitude reinstall $(dpkg --get-selections)
  • find out what (config) files where modified in your old install with some recursive diff tool available to you (this one seems to make sense). Copy changed files from your backup to your new install. The database files should still be there after a reinstall.

If all that sounds too complicated to you, you could think to just reinstall anything that complains (apache2, bind9, mysql, ...), but that way a lot of things will still be severly broken without you noticing.

Did I say that you should make a backup?

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .