{"id":1135,"date":"2020-12-16T15:49:17","date_gmt":"2020-12-16T15:49:17","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2020\/12\/16\/4726775-how-to-check-the-files-and-folders-ownership-using-ssh-at-hostinger\/"},"modified":"2026-10-16T04:45:49","modified_gmt":"2026-10-16T04:45:49","slug":"4726775-how-to-check-the-files-and-folders-ownership-using-ssh-at-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/4726775-how-to-check-the-files-and-folders-ownership-using-ssh-at-hostinger\/","title":{"rendered":"How to check the files and folders ownership using SSH at Hostinger"},"content":{"rendered":"<p class=\"no-margin\">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&rsquo;s owner should match your hosting username. Contact Hostinger support to fix the ownership if it doesn&rsquo;t match.<\/p><h2 id=\"step-1---find-username-of-your-hosting\">Step 1 &ndash; Find the username of your hosting<\/h2><p class=\"no-margin\">For Hostinger dashboard &ndash; <b><a data-click-id=\"hgr-post-content-link-what-is-the-path-to-my-root-home-directory-how-can-it-be-cha\" class=\"intercom-content-link\" href=\"https:\/\/www.hostinger.com\/support\/1583494-what-is-the-path-to-your-website-s-root-home-directory-and-how-to-change-it-in-hostinger\/\" target=\"_blank\" rel=\"noopener\">What is the path to my root home directory, how can it be changed?<\/a><\/b><\/p><p class=\"no-margin\">For cPanel &ndash; <b><a data-click-id=\"hgr-post-content-link-how-to-check-my-username-in-cpanel\" class=\"intercom-content-link\" href=\"https:\/\/www.hostinger.com\/support\/4786567-how-to-check-your-cpanel-username-at-hostinger\/\" target=\"_blank\" rel=\"noopener\">How to check my username in cPanel?<\/a><\/b><\/p><h2 id=\"step-2---connect-to-ssh-for-your-hosting\">Step 2 &ndash; Connect to SSH for your hosting<\/h2><p class=\"no-margin\">For Hostinger dashboard &ndash; <b><a data-click-id=\"hgr-post-content-link-how-can-i-connect-to-my-account-via-ssh\" class=\"intercom-content-link\" href=\"https:\/\/www.hostinger.com\/support\/1583245-how-to-connect-to-a-hosting-plan-via-ssh-in-hostinger\/\" target=\"_blank\" rel=\"noopener\">How can I connect to my account via SSH?<\/a><\/b><\/p><p class=\"no-margin\">For cPanel &ndash; <b><a data-click-id=\"hgr-post-content-link-how-to-log-in-to-my-cpanel-account-via-ssh\" class=\"intercom-content-link\" href=\"https:\/\/www.hostinger.com\/support\/4622295-how-to-connect-to-your-cpanel-account-via-ssh-at-hostinger\/\" target=\"_blank\" rel=\"noopener\">How to log in to my cPanel account via SSH?<\/a><\/b><\/p><h2 id=\"step-3---run-commands-in-ssh\">Step 3 &ndash; Run commands in SSH<\/h2><p class=\"no-margin\">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 <b>cd<\/b> command. To learn more about basic SSH commands check this article: <a data-click-id=\"hgr-post-content-link-common-ssh-commands-at-hostinger\" href=\"https:\/\/www.hostinger.com\/support\/5822386-common-ssh-commands-at-hostinger\/\">Common SSH commands at Hostinger.<\/a><\/p><p class=\"no-margin\">Once this is done, you will use the command below to list all files in your folder:<\/p><pre><code>ls -l<\/code><\/pre><p class=\"no-margin\">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:<\/p><pre><code>-rw-r - r-- 1 username group 0 Fev 20 17:45 file.php<\/code><\/pre><div class=\"intercom-container intercom-align-center\"><img alt=\"\" decoding=\"async\" src=\"https:\/\/blog.hostinger.io\/pt\/support\/wp-content\/uploads\/sites\/59\/2022\/09\/1af4ccf5-c1fa-4b7b-b21b-2caeb1930805.jpg\"><\/div><p class=\"no-margin\">If the ownership is different from the username of your hosting, you will need to contact <b><a data-click-id=\"hgr-post-content-link-our-customer-success\" class=\"intercom-content-link\" href=\"https:\/\/www.hostinger.com\/support\/1583780-how-to-contact-hostinger-support\/\" target=\"_blank\" rel=\"noopener\">our Customer Success<\/a><\/b> team and we will fix it for you!<\/p><p class=\"no-margin\">Files and folders owned by your hosting username are set up correctly and need no further changes.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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.<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[238],"tags":[],"class_list":["post-1135","post","type-post","status-publish","format-standard","hentry","category-files-and-folders-permissions"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/4726775-how-to-check-the-files-and-folders-ownership-using-ssh-at-hostinger","default":1},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/support\/4726775-como-verificar-a-propriedade-de-arquivos-e-pastas-usando-ssh-no-hostinger","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1135","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=1135"}],"version-history":[{"count":5,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1135\/revisions"}],"predecessor-version":[{"id":20824,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1135\/revisions\/20824"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1135"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}