{"id":3563,"date":"2011-08-11T13:28:12","date_gmt":"2011-08-11T17:28:12","guid":{"rendered":"http:\/\/underhost.com\/blog\/?p=3563"},"modified":"2025-03-15T04:39:55","modified_gmt":"2025-03-15T08:39:55","slug":"cpanel-tutorial-files-file-permissions","status":"publish","type":"post","link":"https:\/\/underhost.com\/blog\/cpanel-tutorial-files-file-permissions\/","title":{"rendered":"cPanel Tutorial: Files &#8211; File Permissions"},"content":{"rendered":"<p><strong>Changing File\/Folder Permissions<\/strong><\/p>\n<p>All files on UNIX-based systems (including Linux) have access permissions. These permissions determine how users and the operating system interact with files. There are three types of access:<\/p>\n<ul>\n<li><strong>Read (r)<\/strong> &#8211; Files with read access can be displayed to the user.<\/li>\n<li><strong>Write (w)<\/strong> &#8211; Files with write access can be modified by the user.<\/li>\n<li><strong>Execute (x)<\/strong> &#8211; Files with execute access can be run as programs by the user.<\/li>\n<\/ul>\n<p>Access types are set for three categories of users:<\/p>\n<ul>\n<li><strong>User<\/strong> &#8211; The owner of the file.<\/li>\n<li><strong>Group<\/strong> &#8211; Other users who belong to the same group.<\/li>\n<li><strong>World<\/strong> &#8211; All other users.<\/li>\n<\/ul>\n<h3>Recommended File and Folder Permissions<\/h3>\n<p>The web server must be able to read your website files to display them correctly in a browser. Below are the appropriate permissions for different file types:<\/p>\n<ul>\n<li><strong>HTML files and images:<\/strong> Set to <strong>644<\/strong> (readable by User, Group, and World; writable by User). This is automatically set when you upload files.<\/li>\n<li><strong>Folders:<\/strong> Set to <strong>755<\/strong> (readable and executable by User, Group, and World; writable by User). This is automatically set when creating folders.<\/li>\n<li><strong>CGI scripts (in the cgi-bin folder):<\/strong> Set to <strong>755<\/strong> (readable and executable by User, Group, and World; writable by User). You must manually change permissions after uploading.<\/li>\n<\/ul>\n<p><strong>Security Warning:<\/strong> Never set files or folders to be writable by others. Doing so may allow unauthorized users to modify or delete your content.<\/p>\n<h3>How to Change File or Folder Permissions in cPanel<\/h3>\n<ol>\n<li>Open your <strong>File Manager<\/strong> in cPanel.<\/li>\n<li>Navigate to the file or folder whose permissions you want to change.<\/li>\n<li>Click on the file or folder name.<\/li>\n<li>Click the <strong>Change Permissions<\/strong> option in the top menu.<\/li>\n<li>Select the appropriate checkboxes to adjust permissions. The numeric value will update automatically.<\/li>\n<li>Click <strong>Change Permissions<\/strong> to apply the new settings.<\/li>\n<\/ol>\n<p>Below is an example of the cPanel File Manager permissions interface:<\/p>\n<p>For reliable hosting with full cPanel access, check out <a href=\"https:\/\/underhost.com\/\">UnderHost.com<\/a>. We offer <strong>offshore hosting, cloud VPS, and dedicated servers<\/strong> with secure file management options.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Changing File\/Folder Permissions All files on UNIX-based systems (including Linux) have access permissions. These permissions determine how users and the operating system interact with files. There are three types of access: Read (r) &#8211; Files with read access can be displayed to the user. Write (w) &#8211; Files with write access can be modified by [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4853,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,39],"tags":[],"class_list":["post-3563","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-controlpanel","category-cpanel-tutorial"],"_links":{"self":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3563","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/comments?post=3563"}],"version-history":[{"count":4,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3563\/revisions"}],"predecessor-version":[{"id":5169,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3563\/revisions\/5169"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/media\/4853"}],"wp:attachment":[{"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/media?parent=3563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/categories?post=3563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/tags?post=3563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}