{"id":9359,"date":"2020-10-28T05:50:48","date_gmt":"2020-10-28T02:50:48","guid":{"rendered":"https:\/\/unihost.com\/help\/?p=9359"},"modified":"2026-08-17T12:42:28","modified_gmt":"2026-08-17T09:42:28","slug":"how-to-recursively-change-the-files-permissions-in-linux","status":"publish","type":"post","link":"https:\/\/unihost.com\/help\/how-to-recursively-change-the-files-permissions-in-linux\/","title":{"rendered":"How to Recursively Change the File&#8217;s Permissions in Linux"},"content":{"rendered":"<p><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">Changing permissions on a single file is easy with chmod. Doing it across a whole directory tree &#8211; hundreds of files and folders &#8211; is where people get it wrong. The blanket command chmod -R 755 works, but it makes every file executable, which is incorrect for normal web files. This guide covers the recursive commands and, more importantly, the correct way to set files and directories to different permissions.<\/span><\/p>\n<h2><strong><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">The Basics: chmod -R<\/span><\/strong><\/h2>\n<p><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">The -R (recursive) flag applies chmod to a directory and everything inside it:<\/span><\/p>\n<pre><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">chmod -R 755 \/path\/directory<\/span><\/pre>\n<p><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">This sets every file and folder to 755. It&#8217;s fine for directories, but files usually shouldn&#8217;t be executable &#8211; so applying 755 to everything is not what you want for a website.<\/span><\/p>\n<h2><strong><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">The Correct Way: Files 644, Directories 755<\/span><\/strong><\/h2>\n<p><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">Standard, secure permissions are 644 for files (read\/write for owner, read for others) and 755 for directories (which need the execute bit to be entered). Use find to apply each correctly:<\/span><\/p>\n<pre><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\"># set all directories to 755:<\/span>\r\n<span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">find \/path\/directory -type d -exec chmod 755 {} \\;<\/span>\r\n\r\n<span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\"># set all files to 644:<\/span>\r\n<span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">find \/path\/directory -type f -exec chmod 644 {} \\;<\/span><\/pre>\n<p><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">This is the command experienced admins use. -type d matches directories, -type f matches files, so each gets the right permission in a single pass.<\/span><\/p>\n<h2><strong><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">Changing Ownership Recursively (chown)<\/span><\/strong><\/h2>\n<p><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">Permissions and ownership are separate. To recursively change the owner and group &#8211; for example to your web server user:<\/span><\/p>\n<pre><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">sudo chown -R www-data:www-data \/path\/directory<\/span><\/pre>\n<p><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">Replace www-data with the correct user for your setup (e.g. nginx, apache, or your username).<\/span><\/p>\n<div style=\"background-color: #fde8e8; border: 1px solid #f5c2c2; border-radius: 6px; padding: 14px 16px; font-family: Ubuntu, Arial, sans-serif; font-size: 14px; color: #5c1a1a; line-height: 1.5; display: flex; align-items: flex-start; gap: 10px;\">\n<p><span style=\"font-size: 12pt; line-height: 1; flex-shrink: 0; font-family: Ubuntu, sans-serif;\">&#x26a0;<\/span><\/p>\n<p><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\"><strong>Never use chmod -R 777. It gives every user full read, write, and execute access, which is a serious security risk and a common cause of hacked sites. If something only works with 777, the real issue is ownership, not permissions \u2014 fix it with chown instead.<\/strong><\/span><\/p>\n<\/div>\n<h2><strong><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">Quick Reference<\/span><\/strong><\/h2>\n<table style=\"width: 100%; border-collapse: collapse; font-family: Ubuntu, Arial, sans-serif; font-size: 14px; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08);\">\n<thead>\n<tr style=\"background-color: #2c5aa0; color: #ffffff;\">\n<th style=\"padding: 12px 16px; text-align: left; font-weight: 600;\"><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">Permission<\/span><\/th>\n<th style=\"padding: 12px 16px; text-align: left; font-weight: 600;\"><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">Meaning<\/span><\/th>\n<th style=\"padding: 12px 16px; text-align: left; font-weight: 600;\"><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">Use for<\/span><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"background-color: #f0f4f8;\">\n<td style=\"padding: 11px 16px; border-bottom: 1px solid #e0e6ed;\"><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">644<\/span><\/td>\n<td style=\"padding: 11px 16px; border-bottom: 1px solid #e0e6ed;\"><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">Owner read\/write, others read<\/span><\/td>\n<td style=\"padding: 11px 16px; border-bottom: 1px solid #e0e6ed;\"><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">Files<\/span><\/td>\n<\/tr>\n<tr style=\"background-color: #ffffff;\">\n<td style=\"padding: 11px 16px; border-bottom: 1px solid #e0e6ed;\"><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">755<\/span><\/td>\n<td style=\"padding: 11px 16px; border-bottom: 1px solid #e0e6ed;\"><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">Owner full, others read\/execute<\/span><\/td>\n<td style=\"padding: 11px 16px; border-bottom: 1px solid #e0e6ed;\"><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">Directories, scripts<\/span><\/td>\n<\/tr>\n<tr style=\"background-color: #f0f4f8;\">\n<td style=\"padding: 11px 16px; border-bottom: 1px solid #e0e6ed;\"><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">600<\/span><\/td>\n<td style=\"padding: 11px 16px; border-bottom: 1px solid #e0e6ed;\"><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">Owner read\/write only<\/span><\/td>\n<td style=\"padding: 11px 16px; border-bottom: 1px solid #e0e6ed;\"><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">Private config, keys<\/span><\/td>\n<\/tr>\n<tr style=\"background-color: #ffffff;\">\n<td style=\"padding: 11px 16px;\"><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">777<\/span><\/td>\n<td style=\"padding: 11px 16px;\"><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">Everyone full access<\/span><\/td>\n<td style=\"padding: 11px 16px;\"><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">Avoid \u2014 security risk<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">FAQ<\/span><\/h2>\n<p><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">Q: How do I recursively change permissions in Linux? &#8211; Use chmod -R for a blanket change, or, better, use find with -type f and -type d to set files to 644 and directories to 755 separately.<\/span><\/p>\n<p><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">Q: Why shouldn&#8217;t I use chmod -R 755 on everything? &#8211; Because it makes files executable, which is incorrect and insecure for normal web files. Files should be 644 and only directories 755.<\/span><\/p>\n<p><span style=\"font-size: 12pt; font-family: Ubuntu, sans-serif;\">Q: Is chmod 777 safe? &#8211; No. 777 gives everyone full access and is a common security hole. If a script needs it to work, the real problem is ownership &#8211; use chown instead.<\/span><script type=\"application\/ld+json\">\n{\n  \"@context\":\"https:\/\/schema.org\",\"@type\":\"HowTo\",\"name\":\"How to Recursively Change File Permissions in Linux\",\n  \"step\":[\n    {\"@type\":\"HowToStep\",\"position\":1,\"name\":\"Use chmod -R to apply a permission to a whole directory tree.\"},\n    {\"@type\":\"HowToStep\",\"position\":2,\"name\":\"For correct permissions, set directories to 755 with find -type d -exec chmod 755.\"},\n    {\"@type\":\"HowToStep\",\"position\":3,\"name\":\"Set files to 644 with find -type f -exec chmod 644.\"},\n    {\"@type\":\"HowToStep\",\"position\":4,\"name\":\"Change ownership recursively with sudo chown -R user:group.\"},\n    {\"@type\":\"HowToStep\",\"position\":5,\"name\":\"Avoid chmod -R 777, which is a security risk.\"}\n  ]\n}\n<\/script><br \/>\n<script type=\"application\/ld+json\">\n{\n  \"@context\":\"https:\/\/schema.org\",\"@type\":\"FAQPage\",\n  \"mainEntity\":[\n    {\"@type\":\"Question\",\"name\":\"How do I recursively change permissions in Linux?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Use chmod -R for a blanket change, or better, use find with -type f and -type d to set files to 644 and directories to 755 separately.\"}},\n    {\"@type\":\"Question\",\"name\":\"Why shouldn't I use chmod -R 755 on everything?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Because it makes files executable, which is incorrect and insecure for normal web files. Files should be 644 and only directories 755.\"}},\n    {\"@type\":\"Question\",\"name\":\"Is chmod 777 safe?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"No. 777 gives everyone full access and is a common security hole. If a script needs it to work, the real problem is ownership, so use chown instead.\"}}\n  ]\n}\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Changing permissions on a single file is easy with chmod. Doing it across a whole directory tree &#8211; hundreds of files and folders &#8211; is where people get it wrong. The blanket command chmod -R 755 works, but it makes every file executable, which is incorrect for normal web files. This guide covers the recursive [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[158],"tags":[596,520,652,502],"class_list":["post-9359","post","type-post","status-publish","format-standard","hentry","category-dedicated-servers","tag-cloud-vps","tag-dedicated-servers","tag-permissions","tag-server-management"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Recursively Change File Permissions in Linux (chmod -R)<\/title>\n<meta name=\"description\" content=\"How to recursively change file and folder permissions in Linux with chmod -R and find - including the correct way to set files to 644 and directories to 755 separately.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/unihost.com\/help\/how-to-recursively-change-the-files-permissions-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Recursively Change File Permissions in Linux (chmod -R)\" \/>\n<meta property=\"og:description\" content=\"How to recursively change file and folder permissions in Linux with chmod -R and find - including the correct way to set files to 644 and directories to 755 separately.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/unihost.com\/help\/how-to-recursively-change-the-files-permissions-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"Unihost.FAQ\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/unihost\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-10-28T02:50:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-08-17T09:42:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/unihost.com\/help\/minio.php?.\/unihost-logo-alt.png\" \/>\n\t<meta property=\"og:image:width\" content=\"250\" \/>\n\t<meta property=\"og:image:height\" content=\"141\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Unihost Support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@unihost\" \/>\n<meta name=\"twitter:site\" content=\"@unihost\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Unihost Support\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/how-to-recursively-change-the-files-permissions-in-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/how-to-recursively-change-the-files-permissions-in-linux\\\/\"},\"author\":{\"name\":\"Unihost Support\",\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/#\\\/schema\\\/person\\\/bb5ae95f38577c920e6a7507888b715a\"},\"headline\":\"How to Recursively Change the File&#8217;s Permissions in Linux\",\"datePublished\":\"2020-10-28T02:50:48+00:00\",\"dateModified\":\"2026-08-17T09:42:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/how-to-recursively-change-the-files-permissions-in-linux\\\/\"},\"wordCount\":405,\"publisher\":{\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/#organization\"},\"keywords\":[\"Cloud VPS\",\"dedicated servers\",\"permissions\",\"server management\"],\"articleSection\":[\"02. Dedicated servers\"],\"inLanguage\":\"en\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/how-to-recursively-change-the-files-permissions-in-linux\\\/\",\"url\":\"https:\\\/\\\/unihost.com\\\/help\\\/how-to-recursively-change-the-files-permissions-in-linux\\\/\",\"name\":\"How to Recursively Change File Permissions in Linux (chmod -R)\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/#website\"},\"datePublished\":\"2020-10-28T02:50:48+00:00\",\"dateModified\":\"2026-08-17T09:42:28+00:00\",\"description\":\"How to recursively change file and folder permissions in Linux with chmod -R and find - including the correct way to set files to 644 and directories to 755 separately.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/how-to-recursively-change-the-files-permissions-in-linux\\\/#breadcrumb\"},\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/unihost.com\\\/help\\\/how-to-recursively-change-the-files-permissions-in-linux\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/how-to-recursively-change-the-files-permissions-in-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Unihost\",\"item\":\"https:\\\/\\\/unihost.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Help\",\"item\":\"https:\\\/\\\/unihost.com\\\/help\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Recursively Change the File&#8217;s Permissions in Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/#website\",\"url\":\"https:\\\/\\\/unihost.com\\\/help\\\/\",\"name\":\"Unihost.FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/unihost.com\\\/help\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/#organization\",\"name\":\"Unihost\",\"alternateName\":\"Unihost\",\"url\":\"https:\\\/\\\/unihost.com\\\/help\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/unihost.com\\\/help\\\/minio.php?2026\\\/01\\\/minio.png\",\"contentUrl\":\"https:\\\/\\\/unihost.com\\\/help\\\/minio.php?2026\\\/01\\\/minio.png\",\"width\":300,\"height\":300,\"caption\":\"Unihost\"},\"image\":{\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/unihost\\\/\",\"https:\\\/\\\/x.com\\\/unihost\",\"https:\\\/\\\/www.instagram.com\\\/unihost\\\/?hl=en\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/unihost-com\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCITKsxMDnslQY8brN3advgw\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/#\\\/schema\\\/person\\\/bb5ae95f38577c920e6a7507888b715a\",\"name\":\"Unihost Support\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"caption\":\"Unihost Support\"},\"sameAs\":[\"https:\\\/\\\/unihost.com\\\/\"],\"url\":\"https:\\\/\\\/unihost.com\\\/help\\\/author\\\/support\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Recursively Change File Permissions in Linux (chmod -R)","description":"How to recursively change file and folder permissions in Linux with chmod -R and find - including the correct way to set files to 644 and directories to 755 separately.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/unihost.com\/help\/how-to-recursively-change-the-files-permissions-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"How to Recursively Change File Permissions in Linux (chmod -R)","og_description":"How to recursively change file and folder permissions in Linux with chmod -R and find - including the correct way to set files to 644 and directories to 755 separately.","og_url":"https:\/\/unihost.com\/help\/how-to-recursively-change-the-files-permissions-in-linux\/","og_site_name":"Unihost.FAQ","article_publisher":"https:\/\/www.facebook.com\/unihost\/","article_published_time":"2020-10-28T02:50:48+00:00","article_modified_time":"2026-08-17T09:42:28+00:00","og_image":[{"width":250,"height":141,"url":"https:\/\/unihost.com\/help\/minio.php?.\/unihost-logo-alt.png","type":"image\/png"}],"author":"Unihost Support","twitter_card":"summary_large_image","twitter_creator":"@unihost","twitter_site":"@unihost","twitter_misc":{"Written by":"Unihost Support","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/unihost.com\/help\/how-to-recursively-change-the-files-permissions-in-linux\/#article","isPartOf":{"@id":"https:\/\/unihost.com\/help\/how-to-recursively-change-the-files-permissions-in-linux\/"},"author":{"name":"Unihost Support","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a"},"headline":"How to Recursively Change the File&#8217;s Permissions in Linux","datePublished":"2020-10-28T02:50:48+00:00","dateModified":"2026-08-17T09:42:28+00:00","mainEntityOfPage":{"@id":"https:\/\/unihost.com\/help\/how-to-recursively-change-the-files-permissions-in-linux\/"},"wordCount":405,"publisher":{"@id":"https:\/\/unihost.com\/help\/#organization"},"keywords":["Cloud VPS","dedicated servers","permissions","server management"],"articleSection":["02. Dedicated servers"],"inLanguage":"en"},{"@type":"WebPage","@id":"https:\/\/unihost.com\/help\/how-to-recursively-change-the-files-permissions-in-linux\/","url":"https:\/\/unihost.com\/help\/how-to-recursively-change-the-files-permissions-in-linux\/","name":"How to Recursively Change File Permissions in Linux (chmod -R)","isPartOf":{"@id":"https:\/\/unihost.com\/help\/#website"},"datePublished":"2020-10-28T02:50:48+00:00","dateModified":"2026-08-17T09:42:28+00:00","description":"How to recursively change file and folder permissions in Linux with chmod -R and find - including the correct way to set files to 644 and directories to 755 separately.","breadcrumb":{"@id":"https:\/\/unihost.com\/help\/how-to-recursively-change-the-files-permissions-in-linux\/#breadcrumb"},"inLanguage":"en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/unihost.com\/help\/how-to-recursively-change-the-files-permissions-in-linux\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/unihost.com\/help\/how-to-recursively-change-the-files-permissions-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Unihost","item":"https:\/\/unihost.com\/"},{"@type":"ListItem","position":2,"name":"Help","item":"https:\/\/unihost.com\/help\/"},{"@type":"ListItem","position":3,"name":"How to Recursively Change the File&#8217;s Permissions in Linux"}]},{"@type":"WebSite","@id":"https:\/\/unihost.com\/help\/#website","url":"https:\/\/unihost.com\/help\/","name":"Unihost.FAQ","description":"","publisher":{"@id":"https:\/\/unihost.com\/help\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/unihost.com\/help\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en"},{"@type":"Organization","@id":"https:\/\/unihost.com\/help\/#organization","name":"Unihost","alternateName":"Unihost","url":"https:\/\/unihost.com\/help\/","logo":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/","url":"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png","contentUrl":"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png","width":300,"height":300,"caption":"Unihost"},"image":{"@id":"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/unihost\/","https:\/\/x.com\/unihost","https:\/\/www.instagram.com\/unihost\/?hl=en","https:\/\/www.linkedin.com\/company\/unihost-com","https:\/\/www.youtube.com\/channel\/UCITKsxMDnslQY8brN3advgw"]},{"@type":"Person","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a","name":"Unihost Support","image":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","caption":"Unihost Support"},"sameAs":["https:\/\/unihost.com\/"],"url":"https:\/\/unihost.com\/help\/author\/support\/"}]}},"_links":{"self":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/9359","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/comments?post=9359"}],"version-history":[{"count":17,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/9359\/revisions"}],"predecessor-version":[{"id":20455,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/9359\/revisions\/20455"}],"wp:attachment":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/media?parent=9359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/categories?post=9359"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/tags?post=9359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}