{"id":6169,"date":"2026-08-07T05:19:51","date_gmt":"2026-08-07T02:19:51","guid":{"rendered":"https:\/\/www.scalahosting.com\/kb\/?p=6169"},"modified":"2026-08-07T05:19:52","modified_gmt":"2026-08-07T02:19:52","slug":"change-file-permissions-spanel","status":"publish","type":"post","link":"https:\/\/www.scalahosting.com\/kb\/change-file-permissions-spanel\/","title":{"rendered":"How to Change File and Folder Permissions in SPanel&#8217;s File Manager"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In SPanel&#8217;s File Manager, select the file or folder, click the <strong>Permissions <\/strong>toolbar button, and adjust the owner\/group\/other read-write-execute checkboxes or type a numeric mode. SPanel applies the change as your account owner, so ownership stays correct. For most sites, files should be 644 and folders 755 &#8211; avoid 777, which is almost never needed and exposes your files.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Who this is for<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This is for developers and site owners who hit a &#8220;permission denied&#8221; error, a 403, or a file an application cannot read or write. You have a specific file or folder &#8211; a config file, an upload directory, a PHP script &#8211; that needs correcting through SPanel rather than over SSH, without changing ownership or breaking other files.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>What problem this solves<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Wrong permissions break sites two ways. Too restrictive, and the web server or your application gets &#8220;permission denied&#8221; and the page fails. Too loose &#8211; 777 on everything &#8211; and any process on the server can read or rewrite your files, a real security exposure. You need to set a sensible mode on one item and confirm it took effect.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How SPanel solves this<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">File Manager handles permission changes through one dialog. Select the file or folder, then click the <strong>Permissions<\/strong> button on the toolbar &#8211; it carries a warning icon. The change-permissions dialog opens with a grid of read, write, and execute checkboxes for owner, group, and other, plus a numeric mode field.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The two views are linked: tick a box and the number updates; type a number and the boxes follow. Set the mode, confirm, and the dialog closes. The listing reflects the new permissions immediately.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Why this is different in SPanel<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Two things are worth knowing. First, SPanel applies the change as your account owner, not as root. Your files keep the correct ownership, so you don&#8217;t create a new &#8220;owned by the wrong user&#8221; problem while fixing a permissions one.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Second, the dialog shows the checkbox grid and the numeric mode together and keeps them in sync. If you think in rwx boxes, use the boxes; if you think in 644, type 644. Seeing both views of the same value makes it harder to set something you didn&#8217;t intend.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Before you start<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Access to SPanel and the File Manager for the account that owns the files.<\/li>\n\n\n\n<li>Know the mode you want before opening the dialog: files 644, folders 755 in most cases.<\/li>\n\n\n\n<li>Changing the wrong item &#8211; or removing an execute bit something relies on &#8211; can take a feature offline. Note the current mode before you change it so you can revert.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Step-by-step<\/strong><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open File Manager and browse to the item. For this walkthrough we use kb-test-file.txt inside the kb-test folder. Click once to select it; the row highlights.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large mpg-gallery\"><img decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2026\/08\/01-select-permissions-1024x640.webp\" alt=\"How to Change File and Folder Permissions in SPanel&#8217;s File Manager, Step-by-step\" class=\"wp-image-6170\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2026\/08\/01-select-permissions-1024x640.webp 1024w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2026\/08\/01-select-permissions-300x188.webp 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2026\/08\/01-select-permissions-768x480.webp 768w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2026\/08\/01-select-permissions.webp 1440w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li>Click the <strong>Permissions<\/strong> button on the toolbar &#8211; the one with the warning icon. The change-permissions dialog opens for the selected item.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large mpg-gallery\"><img decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2026\/08\/02-permissions-dialog-1024x640.webp\" alt=\"How to Change File and Folder Permissions in SPanel&#8217;s File Manager, Step-by-step 2\" class=\"wp-image-6171\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2026\/08\/02-permissions-dialog-1024x640.webp 1024w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2026\/08\/02-permissions-dialog-300x188.webp 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2026\/08\/02-permissions-dialog-768x480.webp 768w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2026\/08\/02-permissions-dialog.webp 1440w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li>Set the mode. Use the read\/write\/execute checkboxes for owner, group, and other, or type the numeric mode directly. For kb-test-file.txt, 644 is correct. The grid and the number stay in sync, so confirm both read as you expect.<\/li>\n\n\n\n<li>Safety check before you confirm: re-read the item name and the mode you&#8217;re about to set. A folder needs the execute bit (755) to be enterable; a file usually does not (644). If you&#8217;re changing a folder and want the same mode on what&#8217;s inside, select the <strong>Recursive (apply to all sub-directories and files inside selected) <\/strong>checkbox.<\/li>\n\n\n\n<li>Click <strong>Change<\/strong>. It closes the dialog and shows the new permissions. Reload or retry the failing operation; the &#8220;permission denied&#8221; error should be gone.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>What happens behind the scenes<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">SPanel writes the change on the filesystem under your account, the same way a chmod would, but as the account owner rather than root &#8211; which is why ownership doesn&#8217;t shift underneath you. The numeric mode is the standard octal value, so 644 means what it means anywhere else: owner reads and writes, everyone else only reads. The contents don&#8217;t change; only who may read, write, or execute the item.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Limitations and edge cases<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Safe defaults matter.<\/strong> Files are normally 644, folders 755, PHP files usually 644. 777 grants write access to everyone and is unsafe &#8211; it&#8217;s rarely necessary, and if an app claims it needs 777, treat that as a prompt to check the app&#8217;s real requirement. Set 644\/755 first and only loosen for a specific, documented need.<\/li>\n\n\n\n<li><strong>Changes are not recursive by default.<\/strong> Setting a folder&#8217;s permissions does not change the files and subfolders inside it unless you select the <strong>Recursive <\/strong>checkbox. A single change touches a single item, so apply the mode to each item that needs it.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Troubleshooting<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table is-style-regular green-rows\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Symptom<\/strong><\/td><td><strong>Likely cause<\/strong><\/td><td><strong>What to do<\/strong><\/td><\/tr><tr><td>Still &#8220;permission denied&#8221; after changing the file<\/td><td>The parent folder lacks execute (755), so the file can&#8217;t be reached<\/td><td>Set the containing folder to 755 and retry<\/td><\/tr><tr><td>Folder won&#8217;t open or list its contents<\/td><td>Folder set to 644 instead of 755 &#8211; missing the execute bit<\/td><td>Change the folder back to 755<\/td><\/tr><tr><td>Subfolders still have the old mode<\/td><td>The change applied to one item only, not recursively<\/td><td>Set each item, or use the recurse option [VERIFY UI LABEL] if available<\/td><\/tr><tr><td>Permissions button does nothing<\/td><td>No file or folder was selected first<\/td><td>Select an item, then click Permissions<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>When to use this \/ when not to use this<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table is-style-regular green-rows\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Use this when<\/strong><\/td><td><strong>Skip or use something else when<\/strong><\/td><\/tr><tr><td>A file or folder needs a specific mode to fix an error<\/td><td>The real problem is wrong ownership, not permissions<\/td><\/tr><tr><td>You&#8217;re correcting an unsafe 777 back to 644\/755<\/td><td>You need to change hundreds of items and there&#8217;s no recurse option<\/td><\/tr><tr><td>You want the change applied as the account owner<\/td><td>The fix is application config, not filesystem permissions<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>FAQ<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Q:<\/strong> <strong>What permissions should a normal file have?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>A:<\/strong> 644 for most files, including PHP files &#8211; owner reads and writes, everyone else reads only. Folders need 755 so they can be entered. Avoid 777 unless something specific and documented requires it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Q:<\/strong> <strong>Why is my site still broken after I fixed the file?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>A:<\/strong> Often the file is fine but its parent folder lacks the execute bit. A folder at 644 can&#8217;t be traversed; set it to 755 and retry.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Q:<\/strong> <strong>Does changing a folder&#8217;s permissions change the files inside it?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>A:<\/strong> No. The change applies to the selected item only, unless the dialog offers a recursive\/apply-to-subfolders option [VERIFY UI LABEL]. Otherwise, set each item individually.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Q:<\/strong> <strong>Is it safe to use 777 to make an error go away?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>A:<\/strong> It fixes the symptom and creates a security problem &#8211; 777 lets any process write your files. Start at 644\/755 and only loosen for a specific, confirmed need.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Q:<\/strong> <strong>Will changing permissions change who owns the file?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>A:<\/strong> No. SPanel applies the change as your account owner; ownership stays unchanged.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Q:<\/strong> <strong>Why does a folder need execute permission?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>A:<\/strong> The execute bit on a folder allows it to be entered and listed. That&#8217;s why folders use 755 and files use 644.<\/p>\n\n\n\n<script type=\"application\/ld+json\">\n    {\n      \"@context\": \"https:\/\/schema.org\",\n      \"@type\": \"FAQPage\",\n      \"mainEntity\": [{\n        \"@type\": \"Question\",\n        \"name\": \"What permissions should a normal file have?\",\n        \"acceptedAnswer\": {\n          \"@type\": \"Answer\",\n          \"text\": \"644 for most files, including PHP files - owner reads and writes, everyone else reads only. Folders need 755 so they can be entered. Avoid 777 unless something specific and documented requires it.\"\n        }\n      }, {\n        \"@type\": \"Question\",\n        \"name\": \"Why is my site still broken after I fixed the file?\",\n        \"acceptedAnswer\": {\n          \"@type\": \"Answer\",\n          \"text\": \"Often the file is fine but its parent folder lacks the execute bit. A folder at 644 can't be traversed; set it to 755 and retry.\"\n        }\n      },{\n        \"@type\": \"Question\",\n        \"name\": \"Does changing a folder's permissions change the files inside it?\",\n        \"acceptedAnswer\": {\n          \"@type\": \"Answer\",\n          \"text\": \"No. The change applies to the selected item only, unless the dialog offers a recursive\/apply-to-subfolders option [VERIFY UI LABEL]. Otherwise, set each item individually.\"\n        }\n      },{\n        \"@type\": \"Question\",\n        \"name\": \"Is it safe to use 777 to make an error go away?\",\n        \"acceptedAnswer\": {\n          \"@type\": \"Answer\",\n          \"text\": \"It fixes the symptom and creates a security problem - 777 lets any process write your files. Start at 644\/755 and only loosen for a specific, confirmed need.\"\n        }\n      },{\n        \"@type\": \"Question\",\n        \"name\": \"Will changing permissions change who owns the file?\",\n        \"acceptedAnswer\": {\n          \"@type\": \"Answer\",\n          \"text\": \"No. SPanel applies the change as your account owner; ownership stays unchanged.\"\n        }\n      },{\n        \"@type\": \"Question\",\n        \"name\": \"Why does a folder need execute permission?\",\n        \"acceptedAnswer\": {\n          \"@type\": \"Answer\",\n          \"text\": \"The execute bit on a folder allows it to be entered and listed. That's why folders use 755 and files use 644.\"\n        }\n      }]\n    }\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>In SPanel&#8217;s File Manager, select the file or folder, click the Permissions toolbar button, and adjust the owner\/group\/other read-write-execute checkboxes or type a numeric mode. SPanel applies the change as your account owner, so ownership stays correct. For most sites, files should be 644 and folders 755 &#8211; avoid 777, which is almost never needed [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_seopress_titles_title":"Change File and Folder Permissions in SPanel | ScalaHosting KB","_seopress_titles_desc":"Change file and folder permissions in SPanel's File Manager with the checkbox grid or a numeric mode. Use 644 for files and 755 for folders, and avoid 777.","_seopress_robots_index":"","_seopress_robots_follow":"","_seopress_robots_imageindex":"","_seopress_robots_snippet":"","_seopress_robots_primary_cat":"","_seopress_robots_breadcrumbs":"","_seopress_robots_freeze_modified_date":"","_seopress_robots_custom_modified_date":"","_seopress_robots_canonical":"","_seopress_social_fb_title":"","_seopress_social_fb_desc":"","_seopress_social_fb_img":"","_seopress_social_fb_img_attachment_id":0,"_seopress_social_fb_img_width":0,"_seopress_social_fb_img_height":0,"_seopress_social_twitter_title":"","_seopress_social_twitter_desc":"","_seopress_social_twitter_img":"","_seopress_social_twitter_img_attachment_id":0,"_seopress_social_twitter_img_width":0,"_seopress_social_twitter_img_height":0,"_seopress_redirections_value":"","_seopress_redirections_enabled":"","_seopress_redirections_enabled_regex":"","_seopress_redirections_logged_status":"","_seopress_redirections_param":"","_seopress_redirections_type":0,"_seopress_analysis_target_kw":"","_seopress_news_disabled":"","_seopress_video_disabled":"","_seopress_video":[],"_seopress_pro_schemas_manual":[],"_seopress_pro_rich_snippets_disable_all":"","_seopress_pro_rich_snippets_disable":[],"_seopress_pro_schemas":[],"footnotes":""},"categories":[66],"tags":[],"class_list":["post-6169","post","type-post","status-publish","format-standard","hentry","category-tutorials"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/6169","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/comments?post=6169"}],"version-history":[{"count":3,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/6169\/revisions"}],"predecessor-version":[{"id":6176,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/6169\/revisions\/6176"}],"wp:attachment":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/media?parent=6169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/categories?post=6169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/tags?post=6169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}