Checking files and folders ownership can be easily done with the help of SSH. All you need to do is follow this procedure:
Step 1 - Find username of your hosting
Step 2 - Connect to SSH for your hosting
Step 3 - Run commands in SSH
Once connected, you will need to access the folder where you wish to check file ownerships, that can be done with the help of cd command. To learn more about basic SSH commands check this article.
Once this is done, you will use the command below to list all files in your folder:
And then a list will be shown with all the files that are inside your folder with various details such as permission, ownership, creation date and so on:
-rw-r - r-- 1 username group 0 Fev 20 17:45 file.php
If the ownership is different from the username of your hosting, you will need to contact our Customer Success team and we will fix it for you!
That’s it! Now you know how to check file and folder ownership via SSH 😊