How to check the files and folders ownership using SSH at Hostinger

Check file and folder ownership using SSH at Hostinger: connect to your hosting plan and run ls -l to compare each owner with your username.

Updated 3 days ago

Check file and folder ownership using SSH at Hostinger by connecting to your hosting plan and running the ls -l command in the folder you want to check. Each file’s owner should match your hosting username. Contact Hostinger support to fix the ownership if it doesn’t match.

Step 1 – Find the username of your hosting

For Hostinger dashboard – What is the path to my root home directory, how can it be changed?

For cPanel – How to check my username in cPanel?

Step 2 – Connect to SSH for your hosting

For Hostinger dashboard – 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: Common SSH commands at Hostinger.

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!

Files and folders owned by your hosting username are set up correctly and need no further changes.