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 the username of your hosting
For cPanel - How to check my username in cPanel?
Step 2 - Connect to SSH for your hosting
For hPanel - How can I connect to my account via SSH?
For cPanel - How to log in to my cPanel account via SSH?
Step 3 - Run commands in SSH
Once connected, you will need to access the folder where you wish to check file ownerships, which can be done with the help of the cd command. To learn more about basic SSH commands check this article: SSH cheat-sheet
Once this is done, you will use the command below to list all files in your folder:
ls -l
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 😊