Results 1 to 13 of 13
  1. #1
    Join Date
    Mar 2007
    Posts
    239

    Accidental recursive chown

    I have accidentally recursively chown the entire root dir and now all sites get permission 403 error. Is there a way to undo this? Or is there a quick command to set all owners back to default?

  2. #2
    Join Date
    Nov 2003
    Location
    Marylebone, London, UK
    Posts
    526

  3. #3
    Join Date
    Mar 2007
    Posts
    239
    Hmmm Im not really sure this is what im looking for. Can someone post some code that will auto set the user:group on a chown command?

  4. #4
    Join Date
    Mar 2003
    Location
    California USA
    Posts
    13,290
    The entire root directory, such as / ? If so you have much larger problems then 403 errors.
    Steven Ciaburri | Industry's Best Server Management - Rack911.com
    Software Auditing - 400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com
    Fully Managed Dedicated Servers (Las Vegas, New York City, & Amsterdam) (AS62710)
    FreeBSD & Linux Server Management, Security Auditing, Server Optimization, PCI Compliance

  5. #5
    Join Date
    Nov 2003
    Location
    Marylebone, London, UK
    Posts
    526
    the above thread shows you how to do something, in this case chmod,
    but you can change this easily to use chown, or any other command
    in fact. as long as you can still execute commands that is!

  6. #6
    Join Date
    Mar 2007
    Posts
    239
    Quote Originally Posted by Steven View Post
    The entire root directory, such as / ? If so you have much larger problems then 403 errors.
    Yes the whole root directory such as /.

    What should I do? Please help, I know this is very bad!

  7. #7

  8. #8
    Join Date
    Mar 2007
    Posts
    239
    Ok...

    I guess I have two options:

    1) reinstall the server and import all sites (long)

    2) Reset files permissions, users, groups to correct values.

    What do you guys think is the best solution?

  9. #9
    Join Date
    Apr 2007
    Posts
    3,513
    Personally I would restore the server from a backup. but that's just because it would be the fastest option for us.
    - Buying up websites, side-projects and companies - PM Me! -

  10. #10
    Join Date
    Mar 2007
    Posts
    239
    Is there a way to rollback the server?

  11. #11
    Join Date
    Feb 2004
    Location
    USA
    Posts
    1,571
    Quote Originally Posted by Zaggs View Post
    Ok...

    I guess I have two options:

    1) reinstall the server and import all sites (long)

    2) Reset files permissions, users, groups to correct values.

    What do you guys think is the best solution?
    Depends is downtime acceptable? i would go for option nr2.

  12. #12
    Join Date
    Mar 2007
    Posts
    239
    Quote Originally Posted by TheServerExperts View Post
    Depends is downtime acceptable? i would go for option nr2.
    Yes downtime is fine, I am going to be working on it all night tonight, so just want to know the best way.

  13. #13
    Join Date
    Mar 2007
    Posts
    239
    can somebody post what the permissions on Plesk should be? Thanks.

Similar Threads

  1. accidental chmod on bin, please help
    By insomne3065 in forum Hosting Security and Technology
    Replies: 4
    Last Post: 10-13-2006, 06:33 PM
  2. quick help! accidental deletion of files
    By web_mann23 in forum Web Hosting Lounge
    Replies: 9
    Last Post: 12-11-2005, 09:19 PM
  3. recursive chown
    By Pingu in forum Hosting Security and Technology
    Replies: 4
    Last Post: 11-22-2002, 04:41 PM
  4. Accidental Ad clicking
    By AcuNett in forum Web Hosting Lounge
    Replies: 5
    Last Post: 04-30-2002, 10:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •