All Collections
Files Management
Files and Folders Permissions
How to check the files and folders ownership using SSH?
How to check the files and folders ownership using SSH?

Checking file and folders ownership via SSH

Updated over a week ago

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

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, 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 😊

Did this answer your question?