{"id":1571,"date":"2019-02-08T10:35:54","date_gmt":"2019-02-08T10:35:54","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2019\/02\/08\/1583244-how-to-set-access-rights-for-files-and-folders-in-hostinger\/"},"modified":"2026-10-16T06:55:16","modified_gmt":"2026-10-16T06:55:16","slug":"1583244-how-to-set-access-rights-for-files-and-folders-in-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/1583244-how-to-set-access-rights-for-files-and-folders-in-hostinger\/","title":{"rendered":"How to set access rights for files and folders in Hostinger"},"content":{"rendered":"<p class=\"no-margin\">Set access rights for files and folders in Hostinger with CHMOD (change mode) permissions, either in File Manager or through an FTP client. Permissions control read, write, and execute rights for the owner, the group, and everyone else, and the defaults are 644 for files and 755 for folders.<\/p><h2 id=\"h_fd82db3e65\">How to set permissions in the File Manager<\/h2><p class=\"no-margin\">Open <b><a data-click-id=\"hgr-post-content-link-websites\" class=\"intercom-content-link\" href=\"https:\/\/hpanel.hostinger.com\/websites\" target=\"_blank\" rel=\"noopener\">Websites<\/a> &rarr; Dashboard<\/b>, search for <a data-click-id=\"hgr-post-content-link-file-manager\" href=\"https:\/\/www.hostinger.com\/support\/4548688-basic-actions-in-the-file-manager-in-hostinger\/\"><b>File Manager<\/b><\/a> on the sidebar and click on it:<\/p><p class=\"no-margin\">Right-click on the file or folder you want to set permissions for and choose <b>Permissions<\/b>:<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2019\/02\/356e6a37-4cb5-4b2d-835b-2ca103c05e9d.jpg\" alt=\"Hostinger file manager menu with the Permissions option highlighted\" data-media-id=\"5469\"><\/div><p class=\"no-margin\">You will be able to choose the needed permissions by checkboxes &ndash; and see their numeric value below. You can also set the same permissions for the content inside folders (make permissions <b>recursive<\/b>):<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2019\/02\/b8a8d33a-6f2e-4dcb-97a2-8db5f3f06921.jpg\" alt=\"Permissions dialog showing selected owner, group, and others access set to rwxr-xr-x (755)\" data-media-id=\"5470\"><\/div><h2 id=\"h_f5d2dfe60d\">How to set permissions via FTP<\/h2><p class=\"no-margin\">If you have already connected to your website files <b><a data-click-id=\"hgr-post-content-link-using-an-ftp-client\" class=\"intercom-content-link\" href=\"https:\/\/www.hostinger.com\/support\/4480505-how-to-connect-to-your-hosting-using-ftp-in-hostinger\/\" target=\"_blank\" rel=\"noopener\">using an FTP client<\/a><\/b> such as FileZilla, all you need to do to set permissions is right-click on the file or folder you want to set permissions for and choose <b>File Attributes<\/b> (or <b>File Permissions<\/b>, the name can be different based on your FTP Client&rsquo;s version):<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2019\/02\/9940ae99-659e-4f85-b7a3-f2d1e55c047d.jpg\" alt=\"Hostinger hPanel file manager with the File Attributes option highlighted in the context menu\" data-media-id=\"5472\"><\/div><p class=\"no-margin\">In the opened window, choose the needed permissions with checkboxes <b>or <\/b>set them with a number. You can also make them recursive.<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2019\/02\/7699eae0-e3fe-4d01-afa3-ef895dd393f8.jpg\" alt=\"Hostinger file permissions dialog with numeric value field set to 755 highlighted\" data-media-id=\"5473\"><\/div><h2 id=\"h_f7489b7be9\">What are the default permissions?<\/h2><p class=\"no-margin\">The default permissions are as follows:<\/p><div class=\"intercom-interblocks-table-container\">\n<table role=\"presentation\">\n<tbody>\n<tr>\n<td style=\"background-color: #e3e7fa80\">\n<p class=\"no-margin\"><b>Permission type<\/b><\/p>\n<\/td>\n<td style=\"background-color: #e3e7fa80\">\n<p class=\"no-margin\"><b>Files<\/b><\/p>\n<\/td>\n<td style=\"background-color: #e3e7fa80\">\n<p class=\"no-margin\"><b>Folders<\/b><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">Owner<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Read, Write<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Read, Write, Execute<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">Group<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Read<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Read, Execute<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">Others<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Read<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">Read, Execute<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"no-margin\">Permission in number<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">644<\/p>\n<\/td>\n<td>\n<p class=\"no-margin\">755<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div><p>Your files and folders now use the access rights you set, and you can return to the default values at any time.<\/p><p class=\"no-margin\"><b>NOTE<\/b><\/p><ul>\n<li>\n<p class=\"no-margin\">You can always set all your files and folders&rsquo; permissions to default with the <b><a data-click-id=\"hgr-post-content-link-fix-file-ownership-feature\" class=\"intercom-content-link\" href=\"https:\/\/www.hostinger.com\/support\/1583479-how-to-fix-file-permissions-in-hostinger\/\" target=\"_blank\" rel=\"noopener\">Fix File Ownership feature<\/a><\/b><\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Set access rights for files and folders in Hostinger with CHMOD in File Manager or an FTP client, and learn the default 644 and 755 permissions.<\/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-1571","post","type-post","status-publish","format-standard","hentry","category-files-and-folders-permissions"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/1583244-how-to-set-access-rights-for-files-and-folders-in-hostinger","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/1583244-como-cambiar-los-permisos-de-una-carpeta-de-archivos-en-hostinger","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/1583244-comment-definir-les-droits-d-acces-pour-les-fichiers-et-les-dossiers-hostinger","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/1583244-cara-mengatur-hak-akses-file-dan-folder-di-hostinger","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/support\/1583244-como-configurar-as-permissoes-de-arquivos-e-pastas-hostinger","default":0},{"locale":"uk-UA","link":"https:\/\/www.hostinger.com\/ua\/support\/1583244-\u044f\u043a-\u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438-\u043f\u0440\u0430\u0432\u0430-\u0434\u043e\u0441\u0442\u0443\u043f\u0443-\u0434\u043e-\u0444\u0430\u0439\u043b\u0456","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1571","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=1571"}],"version-history":[{"count":5,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1571\/revisions"}],"predecessor-version":[{"id":20856,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1571\/revisions\/20856"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1571"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1571"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1571"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}