• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Resetting directory and file ownership.

K

kieranjones

Guest
Hello,

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 :)
 
Back
Top