After doing a transfer of files for a website using SSH, if you’ve transferred from one domain to another, you’ll probably run into a file or folder ownership problem. Using SSH, this is actually easy to fix.
Log in to your server using SSH
Change to the directory you need to change permissions or ownership.
chown -R correctuser *
correctuser is the name of the owner of this website
That’s it. You’ve now changed the owner of files and folders in that directory using SSH.
