{"id":2118,"date":"2024-11-02T17:20:58","date_gmt":"2024-11-02T11:50:58","guid":{"rendered":"https:\/\/chennaiwebhosting.in\/blog\/?p=2118"},"modified":"2024-11-02T18:59:30","modified_gmt":"2024-11-02T13:29:30","slug":"change-file-permissions-with-cpanel","status":"publish","type":"post","link":"https:\/\/chennaiwebhosting.in\/blog\/change-file-permissions-with-cpanel\/","title":{"rendered":"Manage and Change File Permissions with cPanel File Manager"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_80 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/chennaiwebhosting.in\/blog\/change-file-permissions-with-cpanel\/#In_this_article_you_will_learn_how_to_manage_and_change_file_permissions_in_cPanel_using_the_cPanel_File_Manager\" >In this article, you will learn how to manage and change file permissions in cPanel using the cPanel File Manager.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/chennaiwebhosting.in\/blog\/change-file-permissions-with-cpanel\/#Default_Permissions\" >Default Permissions<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/chennaiwebhosting.in\/blog\/change-file-permissions-with-cpanel\/#Incorrect_File_Permissions\" >Incorrect File Permissions?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/chennaiwebhosting.in\/blog\/change-file-permissions-with-cpanel\/#How_we_can_change_the_permission_via_cPanel_File_Manager\" >How we can change the permission\u00a0via cPanel File Manager.<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"In_this_article_you_will_learn_how_to_manage_and_change_file_permissions_in_cPanel_using_the_cPanel_File_Manager\"><\/span><span id=\"In_this_article_you_will_learn_how_to_manage_and_change_file_permissions_in_cPanel_using_the_cPanel_File_Manager\">In this article, you will learn how to manage and change file permissions in cPanel using the cPanel File Manager.<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>When files and directories are created in cPanel\u2019s File Manager, the default permission are assigned. The default permissions for directories and files in cPanel are 755 and 644, respectively. Most users would never need to change the permissions, but at times when an update\/installation fails or due to corrupted files\/folders, the files and directories in <a href=\"https:\/\/www.chennaiwebhosting.in\/web-hosting-chennai.html\" target=\"_blank\" rel=\"nofollow noopener\">cPanel<\/a> can have the incorrect permissions. In this document we will discuss how to fix incorrect permissions.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Default_Permissions\"><\/span><span id=\"Default_Permissions\">Default Permissions<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<pre>public_html\u00a0- 750\r\nFolders\u00a0- 755\r\nCGI and Perl scripts\u00a0- 755\r\n.html .php and other Document Types\u00a0- 644<\/pre>\n<p>Files with lesser permissions than that of the default permission will encounter issues such as request denied, forbidden, etc. when requested by the server. If the permission is higher than that of default permission set, it can allow unauthorized users to access and compromise your site. The contents in your site should always be set to the default permissions.<\/p>\n<h2 id=\"incorrect\" class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Incorrect_File_Permissions\"><\/span>Incorrect File Permissions?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Incorrect file permissions can cause errors or, even worse, allow unauthorized users to hack your site. Once an unauthorized user gains access, they can further alter more of your file permissions to make a site even more vulnerable. Remember that 777 permissions mean that your file is readable, writable, and executable by anyone who can access it. On a file live and online, that means nearly anyone in the world with web access!<\/p>\n<p>777 permissions are not common. It is a rare situation where a file needs to be written and executed by anyone in the world. If you find files or folders with permissions that do not match the default permissions, it\u2019s usually best to change them to <a href=\"https:\/\/support.cpanel.net\/hc\/en-us\/articles\/360050418594-What-are-the-default-file-permissions-for-public-html\" target=\"_blank\" rel=\"noreferrer noopener nofollow\" aria-label=\"cPanel&#039;s recommended permissions (opens in a new tab)\">cPanel\u2019s recommended permissions<\/a>.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"How_we_can_change_the_permission_via_cPanel_File_Manager\"><\/span><span id=\"How_we_can_change_the_permission_via_cPanel_File_Manager\">How we can change the permission\u00a0via cPanel File Manager.<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>1. Login to<strong> cPanel<\/strong> and click on <strong>File Manager<\/strong> .<\/p>\n<div id=\"attachment_2137\" class=\"wp-caption aligncenter\">\n<p><a class=\"cboxElement\" href=\"https:\/\/www.veerotech.net\/kb\/wp-content\/uploads\/2019\/01\/Selection_001.png.webp\" rel=\"nofollow noopener\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2137 size-full colorbox-2136\" src=\"https:\/\/www.veerotech.net\/kb\/wp-content\/uploads\/2019\/01\/Selection_001.png.webp\" sizes=\"auto, (max-width: 1006px) 100vw, 1006px\" srcset=\"https:\/\/www.veerotech.net\/kb\/wp-content\/uploads\/2019\/01\/Selection_001.png.webp 1006w,https:\/\/www.veerotech.net\/kb\/wp-content\/uploads\/2019\/01\/Selection_001-300x125.png.webp 300w,https:\/\/www.veerotech.net\/kb\/wp-content\/uploads\/2019\/01\/Selection_001-768x320.png.webp 768w,https:\/\/www.veerotech.net\/kb\/wp-content\/uploads\/2019\/01\/Selection_001-624x260.png.webp 624w\" alt=\"Login into Cpanel Veerotech Hosting\" width=\"1006\" height=\"419\" aria-describedby=\"caption-attachment-2137\" \/><\/a><\/p>\n<p id=\"caption-attachment-2137\" class=\"wp-caption-text\">cPanel Main Page<\/p>\n<\/div>\n<p>2. Once inside the <strong>File Manager<\/strong>, select the file\/directory and then click on <strong>Permissions <\/strong>to change the current permission. You can also right-click the file\/directory and click <strong>Change Permissions<\/strong> to edit the permission.<\/p>\n<div id=\"attachment_2138\" class=\"wp-caption aligncenter\">\n<p><a class=\"cboxElement\" href=\"https:\/\/www.veerotech.net\/kb\/wp-content\/uploads\/2019\/01\/filepermission.png.webp\" rel=\"nofollow noopener\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2138 size-full colorbox-2136\" src=\"https:\/\/www.veerotech.net\/kb\/wp-content\/uploads\/2019\/01\/filepermission.png.webp\" sizes=\"auto, (max-width: 1362px) 100vw, 1362px\" srcset=\"https:\/\/www.veerotech.net\/kb\/wp-content\/uploads\/2019\/01\/filepermission.png.webp 1362w,https:\/\/www.veerotech.net\/kb\/wp-content\/uploads\/2019\/01\/filepermission-300x125.png.webp 300w,https:\/\/www.veerotech.net\/kb\/wp-content\/uploads\/2019\/01\/filepermission-768x321.png.webp 768w,https:\/\/www.veerotech.net\/kb\/wp-content\/uploads\/2019\/01\/filepermission-1024x428.png.webp 1024w,https:\/\/www.veerotech.net\/kb\/wp-content\/uploads\/2019\/01\/filepermission-624x261.png.webp 624w\" alt=\"File Manager change Permissions\" width=\"1362\" height=\"569\" aria-describedby=\"caption-attachment-2138\" \/><\/a><\/p>\n<p id=\"caption-attachment-2138\" class=\"wp-caption-text\">File Manager change Permissions<\/p>\n<\/div>\n<p>Next, you\u2019ll get a popup <a href=\"https:\/\/www.chennaiwebhosting.in\/chennai-windows-hosting.html\" target=\"_blank\" rel=\"nofollow noopener\">window<\/a> on which you can adjust the permissions by checking the box for each permission you want. The window will also display the corresponding numeric value for the permission you\u2019ve set.<\/p>\n<p>3. Click on <strong>Change Permission<\/strong>\u00a0to confirm the changes.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, you will learn how to manage and change file permissions in cPanel using the cPanel File Manager. When files and directories are created in cPanel\u2019s File Manager, the default permission are assigned. The default permissions for directories and files in cPanel are 755 and 644, respectively. Most users would never need to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2118","post","type-post","status-publish","format-standard","hentry","category-home"],"_links":{"self":[{"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/2118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/comments?post=2118"}],"version-history":[{"count":5,"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/2118\/revisions"}],"predecessor-version":[{"id":2123,"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/2118\/revisions\/2123"}],"wp:attachment":[{"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/media?parent=2118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/categories?post=2118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/tags?post=2118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}