1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Resetting directory and file ownership.

Discussion in 'Plesk for Linux - 8.x and Older' started by kieranjones, Apr 29, 2007.

  1. kieranjones

    kieranjones Guest


    I am having a bit of a problem, I had uploaded a file as root into a subdomain of a website I host using SSH and needed to change the ownership of the file so that the owner of the website could replace the file with his own updated version.

    Problem is when I issues the command to change ownership of everything in the directory to that users login I was in the wrong directory.

    I ran "chown -R ddt *" in the subdomains directory under the virtual host directory, ie. instead of "/var/www/vhosts/domain.com/subdomains/subdomain" I did it in "/var/www/vhosts/domain.com/subdomains"

    Now the file ownership is all a bit crazy, is there a quick easy way of repairing this back to how it should be? There are in excess of 100 subdomains in the domain...

    Silly me is all I can say, but I guess mistakes happen. Your help would be great :)