{"id":4466,"date":"2014-08-14T07:07:43","date_gmt":"2014-08-14T07:07:43","guid":{"rendered":"https:\/\/bodhost.com\/kb\/?p=4466"},"modified":"2026-02-26T14:04:31","modified_gmt":"2026-02-26T14:04:31","slug":"world-writable-files-in-linux","status":"publish","type":"post","link":"https:\/\/www.bodhost.com\/kb\/world-writable-files-in-linux\/","title":{"rendered":"How to Find World-Writable Files in Linux?"},"content":{"rendered":"<div class=\"wp-block-image\">\r\n<figure class=\"alignleft\"><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" class=\"wp-image-4467\" src=\"https:\/\/bodhost.com\/kb\/wp-content\/uploads\/2014\/08\/Tux-150x150.jpg\" alt=\"Tux\" srcset=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2014\/08\/Tux-150x150.jpg 150w, https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2014\/08\/Tux.jpg 300w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n<p class=\"wp-block-paragraph\">In Linux, a file \u201cworld writable\u201d is a file that everyone can write. These files used as sensitive by people who did not aim at the base to write data to the system or out of a given directory.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The world-writable files are more dangerous. When they run by anyone on the system, as they can then make a script. Today, we will see how easily we can locate these files on a Linux system through the command \u201cFind\u201d which is available on most of Linux systems.<\/p>\r\n\r\n\r\n\r\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\r\n<p class=\"wp-block-paragraph\"><strong>Using the Find command:<\/strong><\/p>\r\n<\/blockquote>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">To find the world-writable files on a Linux system, just use the following command:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">| find \/ -type f! -path \"\/ proc \/ *\" -prune -perm o + w exec ls {} -lg \/; 2&gt; \/ dev \/ null<\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Then we will back all world writable system files and display their rights, their owner and their full path:<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>For those who wish to understand the command:<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Find command search files in a directory for the fact that we specify here as the root \u201c\/\u201d<\/p>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\">\r\n<li>&#8220;-type&#8221; specifies the type of object you are looking for. &#8220;F&#8221; for file and &#8220;d&#8221; for directory<\/li>\r\n\r\n\r\n\r\n<li>&#8221; ! path &#8220;\/ proc \/ *&#8221; -prune &#8220;to exclude the&#8221; \/ proc &#8221; which always takes a lot of profit<\/li>\r\n\r\n\r\n\r\n<li>&#8220;perm&#8221; used to search given permission, here &#8216;o + w\u201d or &#8220;2&#8221; that is the octal value of the license &#8220;w&#8221; written for &#8220;other&#8221; users<\/li>\r\n\r\n\r\n\r\n<li>&#8220;- exec &#8216;to execute a command<\/li>\r\n\r\n\r\n\r\n<li>&#8221; -lg ls {} &#8221; will list the files in a list format (&#8221; l &#8220;) without displaying the owner &#8211; (&#8221; g &#8220;) from the root<\/li>\r\n\r\n\r\n\r\n<li>&#8221; 2&gt; \/ dev \/ null &#8221; used to redirect errors to a null file<\/li>\r\n<\/ol>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">For those who quickly grasped the principle of command and options used, it is entirely possible to use it to find the files &#8220;world readable&#8221; files\/folders according to specific rights or rules of other folders.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>In Linux, a file \u201cworld writable\u201d is a file that everyone can write. These files used as sensitive by people who did not aim at the base to write data&hellip;<\/p>\n<p><a href=\"https:\/\/www.bodhost.com\/kb\/world-writable-files-in-linux\/\" class=\"more-link\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[666],"tags":[593],"class_list":["post-4466","post","type-post","status-publish","format-standard","hentry","category-general","tag-world-writable-files-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Find World-Writable Files in Linux?<\/title>\n<meta name=\"description\" content=\"In this article we have explained about How to Find World-Writable Files in Linux?\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.bodhost.com\/kb\/world-writable-files-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 Find World-Writable Files in Linux?\" \/>\n<meta property=\"og:description\" content=\"In this article we have explained about How to Find World-Writable Files in Linux?\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bodhost.com\/kb\/world-writable-files-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowledge Base - bodHOST\" \/>\n<meta property=\"article:published_time\" content=\"2014-08-14T07:07:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-26T14:04:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2014\/08\/Tux.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"300\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\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:\\\/\\\/www.bodhost.com\\\/kb\\\/world-writable-files-in-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/world-writable-files-in-linux\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/c48414ad1536cea20e85282b0737a9f9\"},\"headline\":\"How to Find World-Writable Files in Linux?\",\"datePublished\":\"2014-08-14T07:07:43+00:00\",\"dateModified\":\"2026-02-26T14:04:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/world-writable-files-in-linux\\\/\"},\"wordCount\":283,\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/world-writable-files-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2014\\\/08\\\/Tux-150x150.jpg\",\"keywords\":[\"world writable files Linux\"],\"articleSection\":[\"General Discussion\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/world-writable-files-in-linux\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/world-writable-files-in-linux\\\/\",\"name\":\"How to Find World-Writable Files in Linux?\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/world-writable-files-in-linux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/world-writable-files-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2014\\\/08\\\/Tux-150x150.jpg\",\"datePublished\":\"2014-08-14T07:07:43+00:00\",\"dateModified\":\"2026-02-26T14:04:31+00:00\",\"description\":\"In this article we have explained about How to Find World-Writable Files in Linux?\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/world-writable-files-in-linux\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/world-writable-files-in-linux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/world-writable-files-in-linux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2014\\\/08\\\/Tux-150x150.jpg\",\"contentUrl\":\"https:\\\/\\\/bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2014\\\/08\\\/Tux-150x150.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/world-writable-files-in-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"General Discussion\",\"item\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/category\\\/general\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Find World-Writable Files in Linux?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"alternateName\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"contentUrl\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"width\":240,\"height\":240,\"caption\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/c48414ad1536cea20e85282b0737a9f9\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/51e53199212db3f59606920448d45a6ead224f904558e3ab9251d071a609b202?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/51e53199212db3f59606920448d45a6ead224f904558e3ab9251d071a609b202?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/51e53199212db3f59606920448d45a6ead224f904558e3ab9251d071a609b202?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Find World-Writable Files in Linux?","description":"In this article we have explained about How to Find World-Writable Files in Linux?","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:\/\/www.bodhost.com\/kb\/world-writable-files-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"How to Find World-Writable Files in Linux?","og_description":"In this article we have explained about How to Find World-Writable Files in Linux?","og_url":"https:\/\/www.bodhost.com\/kb\/world-writable-files-in-linux\/","og_site_name":"Knowledge Base - bodHOST","article_published_time":"2014-08-14T07:07:43+00:00","article_modified_time":"2026-02-26T14:04:31+00:00","og_image":[{"width":300,"height":300,"url":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2014\/08\/Tux.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.bodhost.com\/kb\/world-writable-files-in-linux\/#article","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/world-writable-files-in-linux\/"},"author":{"name":"admin","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/c48414ad1536cea20e85282b0737a9f9"},"headline":"How to Find World-Writable Files in Linux?","datePublished":"2014-08-14T07:07:43+00:00","dateModified":"2026-02-26T14:04:31+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bodhost.com\/kb\/world-writable-files-in-linux\/"},"wordCount":283,"publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"image":{"@id":"https:\/\/www.bodhost.com\/kb\/world-writable-files-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/bodhost.com\/kb\/wp-content\/uploads\/2014\/08\/Tux-150x150.jpg","keywords":["world writable files Linux"],"articleSection":["General Discussion"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.bodhost.com\/kb\/world-writable-files-in-linux\/","url":"https:\/\/www.bodhost.com\/kb\/world-writable-files-in-linux\/","name":"How to Find World-Writable Files in Linux?","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.bodhost.com\/kb\/world-writable-files-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/www.bodhost.com\/kb\/world-writable-files-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/bodhost.com\/kb\/wp-content\/uploads\/2014\/08\/Tux-150x150.jpg","datePublished":"2014-08-14T07:07:43+00:00","dateModified":"2026-02-26T14:04:31+00:00","description":"In this article we have explained about How to Find World-Writable Files in Linux?","breadcrumb":{"@id":"https:\/\/www.bodhost.com\/kb\/world-writable-files-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bodhost.com\/kb\/world-writable-files-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bodhost.com\/kb\/world-writable-files-in-linux\/#primaryimage","url":"https:\/\/bodhost.com\/kb\/wp-content\/uploads\/2014\/08\/Tux-150x150.jpg","contentUrl":"https:\/\/bodhost.com\/kb\/wp-content\/uploads\/2014\/08\/Tux-150x150.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.bodhost.com\/kb\/world-writable-files-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"General Discussion","item":"https:\/\/www.bodhost.com\/kb\/category\/general\/"},{"@type":"ListItem","position":2,"name":"How to Find World-Writable Files in Linux?"}]},{"@type":"WebSite","@id":"https:\/\/www.bodhost.com\/kb\/#website","url":"https:\/\/www.bodhost.com\/kb\/","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","description":"","publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"alternateName":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bodhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.bodhost.com\/kb\/#organization","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","url":"https:\/\/www.bodhost.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","contentUrl":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","width":240,"height":240,"caption":"Web Hosting Knowledge Base | bodHOST Hosting FAQ"},"image":{"@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/c48414ad1536cea20e85282b0737a9f9","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/51e53199212db3f59606920448d45a6ead224f904558e3ab9251d071a609b202?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/51e53199212db3f59606920448d45a6ead224f904558e3ab9251d071a609b202?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/51e53199212db3f59606920448d45a6ead224f904558e3ab9251d071a609b202?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/www.bodhost.com\/kb\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/4466","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/comments?post=4466"}],"version-history":[{"count":40,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/4466\/revisions"}],"predecessor-version":[{"id":12193,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/4466\/revisions\/12193"}],"wp:attachment":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/media?parent=4466"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/categories?post=4466"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/tags?post=4466"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}