{"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-03-16T12:12:12","modified_gmt":"2026-03-16T12:12:12","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\">Checking files and folders ownership can be easily done with the help of SSH. All you need to do is follow this procedure:<\/p><p class=\"no-margin\">\n<\/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 hPanel &ndash; <b><a href=\"\/support\/1583494-what-is-the-path-to-my-root-home-directory-how-can-it-be-changed\" target=\"_blank\" class=\"intercom-content-link\">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 href=\"\/support\/4786567-how-to-check-my-username-in-cpanel\" target=\"_blank\" class=\"intercom-content-link\">How to check my username in cPanel?<\/a><\/b><\/p><p class=\"no-margin\">\n<\/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 hPanel &ndash; <b><a href=\"\/support\/1583245-how-can-i-connect-to-my-account-via-ssh\" target=\"_blank\" class=\"intercom-content-link\">How can I connect to my account via SSH?<\/a><\/b><\/p><p class=\"no-margin\">For cPanel &ndash; <b><a href=\"\/support\/4622295-how-to-log-in-to-my-cpanel-account-via-ssh\" target=\"_blank\" class=\"intercom-content-link\">How to log in to my cPanel account via SSH?<\/a><\/b><\/p><p class=\"no-margin\">\n<\/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: <b><a href=\"\/support\/5822386-ssh-cheat-sheet\" target=\"_blank\" class=\"intercom-content-link\">SSH cheat-sheet<\/a><\/b><\/p><p class=\"no-margin\">\n<\/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 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 href=\"\/support\/1583780-how-to-contact-live-support\" target=\"_blank\" class=\"intercom-content-link\">our Customer Success<\/a><\/b> team and we will fix it for you!<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">That&rsquo;s it! Now you know how to check file and folder ownership via SSH &#128522; <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Checking file and folders ownership via SSH<\/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-PT","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":1,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1135\/revisions"}],"predecessor-version":[{"id":4497,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1135\/revisions\/4497"}],"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}]}}