{"id":3563,"date":"2011-08-11T13:28:12","date_gmt":"2011-08-11T17:28:12","guid":{"rendered":"http:\/\/underhost.com\/blog\/?p=3563"},"modified":"2026-10-23T09:54:34","modified_gmt":"2026-10-23T13:54:34","slug":"cpanel-tutorial-files-file-permissions","status":"publish","type":"post","link":"https:\/\/underhost.com\/blog\/cpanel-tutorial-files-file-permissions\/","title":{"rendered":"File Permissions in cPanel: What 644, 755 and 600 Mean and How to Change Them"},"content":{"rendered":"<div class=\"uh-blog-hero\" style=\"margin:0 0 40px;text-align:center;padding:48px 24px;border-radius:20px;background:linear-gradient(135deg,#0D1F3C 0%,#125A8A 58%,#176EA5 100%);color:#ffffff;box-shadow:0 20px 40px -15px rgba(13,31,60,0.28);position:relative;overflow:hidden;\">\n<div style=\"display:inline-flex;align-items:center;gap:8px;padding:7px 14px;margin-bottom:16px;border:1px solid rgba(0,212,255,0.32);border-radius:999px;color:#DFF8FF;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;background:rgba(0,212,255,0.10);\"><i class=\"fas fa-sliders-h\" style=\"color:#00D4FF;\"><\/i> Control Panels<\/div>\n<h1 style=\"color:#ffffff;font-size:clamp(32px,5vw,46px);line-height:1.12;margin:0 0 14px;font-weight:800;\">File Permissions in cPanel: What 644, 755 and 600 Mean and How to Change Them<\/h1>\n<\/div>\n<div class=\"uh-blog-excerpt\" style=\"border-left:4px solid #00D4FF;padding:18px 20px;margin:0 0 34px;background:#F8FAFC;color:#1F2937;border-radius:0 14px 14px 0;box-shadow:0 8px 28px rgba(13,31,60,0.08);line-height:1.75;\"><strong style=\"color:#0D1F3C;\">Short answer:<\/strong> On cPanel hosting, set folders to <strong>755<\/strong> and files to <strong>644<\/strong>. Protect configuration files that hold passwords, such as <code>wp-config.php<\/code>, with <strong>600<\/strong> or <strong>640<\/strong>. Never use <strong>777<\/strong>. Change permissions in <strong>Files &gt; File Manager<\/strong>: select the item, click <strong>Permissions<\/strong>, tick the boxes or type the number, and save.<\/div>\n<nav aria-label=\"Table of contents\" class=\"uh-toc\" style=\"background:#ffffff;border:1px solid #E5E7EB;border-radius:16px;padding:20px 22px;margin:0 0 34px;box-shadow:0 4px 12px rgba(13,31,60,0.08);\">\n<div style=\"font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#176EA5;margin-bottom:10px;\"><i class=\"fas fa-list\" style=\"color:#00D4FF;\"><\/i> In this guide<\/div>\n<ol style=\"margin:0;padding-left:20px;columns:2 260px;column-gap:28px;line-height:1.9;\">\n<li><a href=\"#how-linux-permissions-work\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">How Linux permissions work<\/a><\/li>\n<li><a href=\"#recommended-permissions\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Recommended permissions<\/a><\/li>\n<li><a href=\"#change-permissions-in-file-manager\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Change permissions in File Manager<\/a><\/li>\n<li><a href=\"#change-permissions-over-ssh\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Change permissions over SSH<\/a><\/li>\n<li><a href=\"#ownership-matters-too\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Ownership matters too<\/a><\/li>\n<li><a href=\"#common-errors\" style=\"color:#176EA5;text-decoration:none;font-weight:600;\">Common errors<\/a><\/li>\n<\/ol>\n<\/nav>\n<div class=\"uh-post-content\" style=\"color:#1F2937;font-size:16px;line-height:1.75;\">\n<h2 id=\"how-linux-permissions-work\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-info-circle\" style=\"color:#00D4FF;\"><\/i> How Linux permissions work<\/h2>\n<p style=\"margin:0 0 18px;\">Every file and folder has three sets of permissions, for three kinds of user:<\/p>\n<div style=\"overflow-x:auto;margin:26px 0;border:1px solid #E5E7EB;border-radius:14px;-webkit-overflow-scrolling:touch;\">\n<table style=\"width:100%;border-collapse:collapse;background:#ffffff;color:#1F2937;font-size:15px;line-height:1.55;margin:0;\">\n<thead>\n<tr style=\"background:#0D1F3C;color:#fff;\">\n<th style=\"padding:14px;text-align:left;\">Who<\/th>\n<th style=\"padding:14px;text-align:left;\">Meaning on a cPanel account<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">User (owner)<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Your cPanel account. PHP also runs as this user on modern cPanel servers.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Group<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Other users in the file&#8217;s group, usually only your account and the web server.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">World (others)<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Everyone else on the server.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p style=\"margin:0 0 18px;\">Each set can allow three actions:<\/p>\n<div style=\"overflow-x:auto;margin:26px 0;border:1px solid #E5E7EB;border-radius:14px;-webkit-overflow-scrolling:touch;\">\n<table style=\"width:100%;border-collapse:collapse;background:#ffffff;color:#1F2937;font-size:15px;line-height:1.55;margin:0;min-width:600px;\">\n<thead>\n<tr style=\"background:#0D1F3C;color:#fff;\">\n<th style=\"padding:14px;text-align:left;\">Permission<\/th>\n<th style=\"padding:14px;text-align:left;\">Number<\/th>\n<th style=\"padding:14px;text-align:left;\">On a file<\/th>\n<th style=\"padding:14px;text-align:left;\">On a folder<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Read (r)<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">4<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">View the contents<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">List the files inside<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Write (w)<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">2<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Change or delete<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Create, rename or delete files inside<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Execute (x)<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">1<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Run as a program<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Open the folder and reach files inside<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p style=\"margin:0 0 18px;\">Add the numbers for each set. Read and write is 4 + 2 = 6; read and execute is 4 + 1 = 5; all three is 7. The three digits are user, group and world in that order, so <strong>644<\/strong> means the owner can read and write, and everyone else can only read.<\/p>\n<h2 id=\"recommended-permissions\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-lightbulb\" style=\"color:#00D4FF;\"><\/i> Recommended permissions<\/h2>\n<div style=\"overflow-x:auto;margin:26px 0;border:1px solid #E5E7EB;border-radius:14px;-webkit-overflow-scrolling:touch;\">\n<table style=\"width:100%;border-collapse:collapse;background:#ffffff;color:#1F2937;font-size:15px;line-height:1.55;margin:0;min-width:600px;\">\n<thead>\n<tr style=\"background:#0D1F3C;color:#fff;\">\n<th style=\"padding:14px;text-align:left;\">Item<\/th>\n<th style=\"padding:14px;text-align:left;\">Permission<\/th>\n<th style=\"padding:14px;text-align:left;\">Why<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Folders<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">755<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">The web server can open them; only you can change them<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Normal files (HTML, PHP, images, CSS)<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">644<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Readable by the web server; only you can change them<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Config files with passwords (wp-config.php, configuration.php, .env)<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">600 or 640<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Hidden from other users on the server<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">.htaccess<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">644<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Apache must read it<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">CGI scripts in cgi-bin<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">755<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">They must be executable<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Anything<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Never 777<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Anyone on the server could change the file<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p style=\"margin:0 0 18px;\">On cPanel servers, PHP runs as your own user through PHP-FPM or a similar handler. Your sites can therefore write to files and folders they own without any world-writable permissions. Many servers refuse to run PHP files that are writable by others, so 777 often causes a 500 error rather than fixing anything.<\/p>\n<h2 id=\"change-permissions-in-file-manager\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-angle-double-right\" style=\"color:#00D4FF;\"><\/i> Change permissions in File Manager<\/h2>\n<ol style=\"margin:0 0 24px;padding-left:22px;\">\n<li style=\"margin:0 0 8px;\">In cPanel, open <strong>Files &gt; File Manager<\/strong>.<\/li>\n<li style=\"margin:0 0 8px;\">Go to the file or folder and select it.<\/li>\n<li style=\"margin:0 0 8px;\">Click <strong>Permissions<\/strong> in the toolbar (or right-click and choose Change Permissions).<\/li>\n<li style=\"margin:0 0 8px;\">Tick the boxes, or check the number shown, for example 644.<\/li>\n<li style=\"margin:0 0 8px;\">Click <strong>Change Permissions<\/strong>.<\/li>\n<\/ol>\n<p style=\"margin:0 0 18px;\">File Manager changes one item at a time. Our <a href=\"https:\/\/underhost.com\/blog\/how-to-use-cpanels-file-manager-to-manage-your-website\/\">File Manager guide<\/a> covers the other tools.<\/p>\n<h2 id=\"change-permissions-over-ssh\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-terminal\" style=\"color:#00D4FF;\"><\/i> Change permissions over SSH<\/h2>\n<p style=\"margin:0 0 18px;\">If your plan includes SSH access (<strong>Security &gt; SSH Access<\/strong> or the Terminal in cPanel), you can fix a whole site at once. Run these from the site folder:<\/p>\n<pre style=\"background:#0D1F3C;color:#EAF6FF;padding:18px 20px;border-radius:14px;overflow-x:auto;line-height:1.7;font-size:15px;\"><code>cd ~\/public_html\n\n# Folders to 755, files to 644\nfind . -type d -exec chmod 755 {} \\;\nfind . -type f -exec chmod 644 {} \\;\n\n# Protect a configuration file\nchmod 600 wp-config.php\n\n# Check the result\nls -l<\/code><\/pre>\n<p style=\"margin:0 0 18px;\">The first column of <code>ls -l<\/code> shows permissions as letters: <code>-rw-r--r--<\/code> is 644 and <code>drwxr-xr-x<\/code> is a folder with 755.<\/p>\n<h2 id=\"ownership-matters-too\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-angle-double-right\" style=\"color:#00D4FF;\"><\/i> Ownership matters too<\/h2>\n<p style=\"margin:0 0 18px;\">Permissions only work if your account owns the files. Files uploaded or restored by the server administrator can end up owned by <code>root<\/code> or <code>nobody<\/code>, and then your site cannot write to them even with the right numbers. In File Manager, the permissions view shows the owner. If files belong to another user, ask support to fix the ownership.<\/p>\n<h2 id=\"common-errors\" style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:34px 0 14px;scroll-margin-top:90px;\"><i class=\"fas fa-exclamation-triangle\" style=\"color:#00D4FF;\"><\/i> Common errors<\/h2>\n<div style=\"overflow-x:auto;margin:26px 0;border:1px solid #E5E7EB;border-radius:14px;-webkit-overflow-scrolling:touch;\">\n<table style=\"width:100%;border-collapse:collapse;background:#ffffff;color:#1F2937;font-size:15px;line-height:1.55;margin:0;min-width:600px;\">\n<thead>\n<tr style=\"background:#0D1F3C;color:#fff;\">\n<th style=\"padding:14px;text-align:left;\">Error<\/th>\n<th style=\"padding:14px;text-align:left;\">Likely cause<\/th>\n<th style=\"padding:14px;text-align:left;\">Fix<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">403 Forbidden<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">A folder is not readable, or a file is 600 but the web server must serve it<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Set folders to 755 and public files to 644.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">500 Internal Server Error<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">A PHP file or folder is writable by others (777)<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Reset to 644 and 755.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">The site cannot upload files or update plugins<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Wrong ownership, not wrong numbers<\/td>\n<td style=\"padding:14px;border-top:1px solid #E5E7EB;vertical-align:top;\">Ask support to set the owner to your account.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p style=\"margin:0 0 18px;\">For a worked example with a CMS, see our <a href=\"https:\/\/underhost.com\/blog\/joomla-suphp-and-file-permissions\/\">Joomla permissions guide<\/a>.<\/p>\n<div aria-hidden=\"true\" class=\"uh-section-divider\" style=\"width:min(100% - 32px, 1080px);margin:44px auto;display:grid;grid-template-columns:1fr 32px 1fr;align-items:center;gap:18px;pointer-events:none;\"><span style=\"height:1px;background:linear-gradient(90deg,transparent,rgba(0,212,255,0.40),rgba(23,110,165,0.24),transparent);\"><\/span><img alt=\"\" decoding=\"async\" height=\"32\" loading=\"lazy\" src=\"https:\/\/cdn.underhost.com\/android-chrome-192x192.webp\" style=\"width:32px;height:32px;display:block;border-radius:8px;filter:drop-shadow(0 0 14px rgba(0,212,255,0.30));\" width=\"32\"\/><span style=\"height:1px;background:linear-gradient(90deg,transparent,rgba(23,110,165,0.24),rgba(0,212,255,0.40),transparent);\"><\/span><\/div>\n<\/div>\n<div class=\"uh-blog-cta\" style=\"background:linear-gradient(135deg,#0D1F3C 0%,#125A8A 58%,#176EA5 100%);color:#ffffff;padding:36px 24px;border-radius:20px;text-align:center;margin:44px 0;box-shadow:0 20px 40px -15px rgba(13,31,60,0.32);\">\n<h2 style=\"margin:0 0 12px;font-size:28px;line-height:1.25;color:#ffffff;\">Need help with this?<\/h2>\n<p style=\"font-size:17px;margin:0 auto 22px;color:#EAF6FF;max-width:720px;line-height:1.7;\">Hosting that runs PHP as your own account, with support that fixes permission problems for you.<\/p>\n<p><a href=\"https:\/\/underhost.com\/shared-hosting.php\" style=\"background:linear-gradient(90deg,#00D4FF,#0077FF);color:#ffffff;padding:13px 28px;border-radius:10px;text-decoration:none;font-weight:800;display:inline-block;margin:8px;\">See web hosting plans<\/a><a href=\"https:\/\/customerpanel.ca\/client\/\" style=\"background:transparent;color:#ffffff;padding:12px 28px;border-radius:10px;text-decoration:none;font-weight:800;display:inline-block;margin:8px;border:1px solid rgba(255,255,255,0.32);\">Contact @CustomerPanel<\/a><\/div>\n<div class=\"uh-faq-section\" id=\"faq\" style=\"margin:34px 0;scroll-margin-top:90px;\">\n<h2 style=\"color:#0D1F3C;font-size:28px;line-height:1.25;margin:0 0 18px;border-bottom:2px solid rgba(0,212,255,0.22);padding-bottom:10px;\">Frequently asked questions<\/h2>\n<div style=\"margin-top:18px;background:#F8FAFC;padding:18px 20px;border-radius:14px;border:1px solid rgba(23,110,165,0.14);\">\n<h3 style=\"color:#0D1F3C;margin:0 0 8px;font-size:19px;\">What permissions should my website files have?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">Folders 755 and files 644. Configuration files with passwords can be 600 or 640.<\/p>\n<\/div>\n<div style=\"margin-top:18px;background:#F8FAFC;padding:18px 20px;border-radius:14px;border:1px solid rgba(23,110,165,0.14);\">\n<h3 style=\"color:#0D1F3C;margin:0 0 8px;font-size:19px;\">Is 777 ever safe on cPanel hosting?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">No. PHP runs as your own user, so 777 is never needed, and it lets others change your files.<\/p>\n<\/div>\n<div style=\"margin-top:18px;background:#F8FAFC;padding:18px 20px;border-radius:14px;border:1px solid rgba(23,110,165,0.14);\">\n<h3 style=\"color:#0D1F3C;margin:0 0 8px;font-size:19px;\">What does 644 mean?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">The owner can read and write the file; the group and everyone else can only read it.<\/p>\n<\/div>\n<div style=\"margin-top:18px;background:#F8FAFC;padding:18px 20px;border-radius:14px;border:1px solid rgba(23,110,165,0.14);\">\n<h3 style=\"color:#0D1F3C;margin:0 0 8px;font-size:19px;\">Why do I get 403 Forbidden after changing permissions?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">The web server can no longer read the file or open the folder. Use 644 for files and 755 for folders.<\/p>\n<\/div>\n<div style=\"margin-top:18px;background:#F8FAFC;padding:18px 20px;border-radius:14px;border:1px solid rgba(23,110,165,0.14);\">\n<h3 style=\"color:#0D1F3C;margin:0 0 8px;font-size:19px;\">Can I change permissions for many files at once?<\/h3>\n<p style=\"margin:0;color:#1F2937;line-height:1.7;\">Yes, over SSH with find and chmod, as shown above. File Manager changes one item at a time.<\/p>\n<\/div>\n<\/div>\n<p><!-- uh-related-start --><\/p>\n<div style=\"background:#F4F8FC;border:1px solid #DCE7F3;border-radius:14px;padding:18px 22px;margin:32px 0 8px;\">\n<h2 style=\"margin:0 0 12px;font-size:22px;\">Related guides<\/h2>\n<ul style=\"margin:0;padding-left:20px;\">\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/blog\/cpanel-tutorial-security-ip-deny-manager\/\">cPanel Tutorial: Security &#8211; IP Deny Manager<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/blog\/cpanel-tutorial-domains-parked-domains\/\">cPanel Tutorial: Domains &#8211; Parked Domains<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/blog\/cpanel-tutorial-domains-addon-domains\/\">cPanel Tutorial: Domains &#8211; Addon Domains<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/blog\/how-to-fix-usr-bin-crontab-permissions-are-wrong-error-in-cpanel\/\">How to Fix &#8220;\/usr\/bin\/crontab Permissions Are Wrong&#8221; Error in cPanel<\/a><\/li>\n<li style=\"margin:0 0 8px;\"><a href=\"https:\/\/underhost.com\/blog\/how-to-use-cpanels-file-manager-to-manage-your-website\/\">How to Use cPanel\u2019s File Manager to Manage Your Website<\/a><\/li>\n<\/ul>\n<\/div>\n<p><!-- uh-related-end --><br \/>\n<script type=\"application\/ld+json\">{\"@context\": \"https:\/\/schema.org\", \"@type\": \"FAQPage\", \"mainEntity\": [{\"@type\": \"Question\", \"name\": \"What permissions should my website files have?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Folders 755 and files 644. Configuration files with passwords can be 600 or 640.\"}}, {\"@type\": \"Question\", \"name\": \"Is 777 ever safe on cPanel hosting?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"No. PHP runs as your own user, so 777 is never needed, and it lets others change your files.\"}}, {\"@type\": \"Question\", \"name\": \"What does 644 mean?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"The owner can read and write the file; the group and everyone else can only read it.\"}}, {\"@type\": \"Question\", \"name\": \"Why do I get 403 Forbidden after changing permissions?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"The web server can no longer read the file or open the folder. Use 644 for files and 755 for folders.\"}}, {\"@type\": \"Question\", \"name\": \"Can I change permissions for many files at once?\", \"acceptedAnswer\": {\"@type\": \"Answer\", \"text\": \"Yes, over SSH with find and chmod, as shown above. File Manager changes one item at a time.\"}}]}<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>On cPanel hosting, set folders to 755 and files to 644. Protect configuration files that hold passwords, such as wp-config.php, with 600 or 640. Never use 777. Change permissions in Files > File Manager: select the item, click Permissions, tick the boxes or type the number, and save.<\/p>\n","protected":false},"author":1,"featured_media":4853,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,202],"tags":[108,185],"class_list":["post-3563","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-control-panels","category-cpanel-whm","tag-tag-cpanel","tag-php"],"_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":10,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3563\/revisions"}],"predecessor-version":[{"id":7017,"href":"https:\/\/underhost.com\/blog\/wp-json\/wp\/v2\/posts\/3563\/revisions\/7017"}],"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}]}}