Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Oct 2009
    Posts
    32

    Default ARGH chown'ed everything

    Need help ! i have done something really bad, I was doing somethings for some clients on one of my server I have accidently chown'ed everything in / and /etc

    is there a way of getting the permissions back to what they were, i have tried updating software and reinstalling cpanel but nothing

    now everythings gone down, all websites, main server, ftp server etc

    thanks

  2. #2
    Member
    Join Date
    Jan 2005
    Location
    Earth
    Posts
    1,050

    Default

    Well, you can bring back the websites by correcting the ownership for them but it's hard to correct the ownership of every config files under /etc and other partitions. A re-install of the server and restoring the accounts is the only best solution for you at the moment.

    BTW, correct the ownership of all the accounts using a for loop.

  3. #3
    Member
    Join Date
    Oct 2009
    Posts
    32

    Default

    that script didnt do anything and when I go to manually chown the accounts nothing happens... god im screwd

  4. #4
    Member
    Join Date
    Jan 2005
    Location
    Earth
    Posts
    1,050

    Default

    Well, the script will fix the ownership of all the accounts. Regarding the ownership on the rest of the server files/directories, it is not reversible and cannot be fixed either. Get your websites up temporarily and setup a new server in the mean time.

  5. #5
    Member
    Join Date
    Aug 2006
    Posts
    22

    Default

    Hello martynh,

    Well you will need to change those permissions manually or restore /etc from backup.

    Try running bellow scripts that should correct some part

    /scripts/fixeverything
    /scripts/chownpublichtmls

    Thanks,
    Vinu007

  6. #6
    Member
    Join Date
    Oct 2009
    Posts
    32

    Default

    Thank you very much for this help, i know im not replying much but i am trying everything.

    Its been the biggest disaster iv gone through, i managed to get apache back online and the mail server is now receiving but not sending yet. Just spoke to the DC and they are going to put another drive in later and reinstall the OS but leave the old drive in for me to get the backups across.

    I have never done this before so is there something i need to do once the new drive is online and the old drive connected?

    thanks again for this help
    Martyn

  7. #7
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    I guess this is of no use, but I've had this bookmark for years just in case (I always remembered the thread title though I'm not even sure it's of any use to anyone) but I'll post it anyway.

    http://forums.cpanel.net/f5/big-prob...les-35091.html

  8. #8
    Member
    Join Date
    Oct 2009
    Posts
    32

    Default

    Well I kept on going 8+ hours and no matter what there are still things wrong, for anyone who does this to there selfs there is only one way to fix it, reinstall your OS which is what i have just requested

    Thanks for the help all, will need some of the tips once I have the new machine up and running because there are still some users with public_html and files belonging to root

    Martyn

Similar Threads & Tags
Similar threads

  1. Argh, Password and username???
    By emwatson in forum New User Questions
    Replies: 2
    Last Post: 07-07-2006, 01:05 AM
  2. Argh! Transfer is not working
    By JeremyV in forum cPanel and WHM Discussions
    Replies: 21
    Last Post: 05-27-2005, 02:38 AM
  3. ARGH!!! Kernel Problems?!?!
    By dominet in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 01-27-2004, 01:02 AM
  4. Mailman and Exim ... argh
    By Tripster in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-04-2003, 04:57 PM
  5. ARGH
    By twhiting9275 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-05-2002, 06:58 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube