{"id":99,"date":"2007-06-28T15:34:15","date_gmt":"2007-06-28T13:34:15","guid":{"rendered":"http:\/\/konstantin.filtschew.de\/blog\/2007\/06\/28\/tmp-mit-noexec-unter-debian-linux\/"},"modified":"2007-06-28T15:47:43","modified_gmt":"2007-06-28T13:47:43","slug":"tmp-mit-noexec-unter-debian-linux","status":"publish","type":"post","link":"https:\/\/konstantin.filtschew.de\/blog\/2007\/06\/28\/tmp-mit-noexec-unter-debian-linux\/","title":{"rendered":"\/tmp mit &#8222;noexec&#8220; unter Debian Linux"},"content":{"rendered":"<p>Das \/tmp Verzeichnis beinhaltet eine Menge Dateien, die z.B. \u00fcber Uploadformulare oder Web-Applikationen auf den Rechner kommen und eventuell durch fehlerhafte Anwendungen ausgef\u00fchrt werden k\u00f6nnen. Dies passiert meistens nur in dem \/tmp Verzeichnis, da alle Dateien \u00fcber den Webserver meistens zuerst an diesen Ort kopiert werden oder fast jeder Benutzer auf dem System Zugriff auf diesen Ordner hat.<\/p>\n<p>Damit die lieben Hacker, W\u00fcrmer oder Trojaner sich nicht im \/tmp Verzeichnis ausf\u00fchren lassen, setzten wir das Verzeichnis auf &#8222;noexec&#8220;. Damit k\u00f6nnen in diesem Ordner keine Dateien mehr ausgef\u00fchrt werden, sehr wohl aber gelesen, geschrieben und Verzeichnisse k\u00f6nnen weiter benutzt werden.<\/p>\n<p>Jeder Vorteil hat auch seine Nachteile. Debian&#8217;s apt- und dpkg-tools benutzen das Verzeichnis, um Software zu installieren bzw. zu aktualisieren, da in diesem Verzeichnis Konfigurationsskripts ausgef\u00fchrt werden.<\/p>\n<p>Als L\u00f6sung f\u00fcr das Problem steht das remounten des Verzeichnisses vor jeder Installation.<\/p>\n<p><strong>Ausf\u00fchrbar nach diesem Befehl:  &#8222;mount -o <span class=\"serendipity_searchQuery\">remount<\/span>,exec \/<span class=\"serendipity_searchQuery\">tmp<\/span>&#8222;;<\/strong><\/p>\n<p><strong>Nicht mehr ausf\u00fchrbar nach diesem Befehl:  &#8222;mount -o <span class=\"serendipity_searchQuery\">remount<\/span>,<span class=\"serendipity_searchQuery\">noexec<\/span> \/<span class=\"serendipity_searchQuery\">tmp<\/span>&#8222;;<\/strong><\/p>\n<p>Sch\u00f6n ist das, doch wenn man es vergisst oder die fehlgeschlagene Konfiguration \u00fcbersieht. Daf\u00fcr bietet apt eine L\u00f6sung:<\/p>\n<p>DPkg::Pre-Install-Pkgs {&#8222;mount -o remount,exec \/tmp&#8220;;};<br \/>\nDPkg::Post-Invoke {&#8222;mount -o remount \/tmp&#8220;;};<\/p>\n<p>Sehr sch\u00f6ne L\u00f6sung und wird jedem Admin gefallen \ud83d\ude09<\/p>\n<p>Greetz<\/p>\n<p>Konstantin<\/p>\n<p>Quellen:<\/p>\n<ul>\n<li><a href=\"http:\/\/www.debian-administration.org\/articles\/57\" title=\"Debian Administation Erkl\u00e4rung zu dem Thema\" target=\"_blank\">http:\/\/www.debian-administration.org\/articles\/57<br \/>\n<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Das \/tmp Verzeichnis beinhaltet eine Menge Dateien, die z.B. \u00fcber Uploadformulare oder Web-Applikationen auf den Rechner kommen und eventuell durch fehlerhafte Anwendungen ausgef\u00fchrt werden k\u00f6nnen. Dies passiert meistens nur in dem \/tmp Verzeichnis, da alle Dateien \u00fcber den Webserver meistens zuerst an diesen Ort kopiert werden oder fast jeder Benutzer auf dem System Zugriff auf [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,9],"tags":[],"class_list":["post-99","post","type-post","status-publish","format-standard","hentry","category-linux","category-sicherheit"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\/tmp mit &quot;noexec&quot; unter Debian Linux - Konstantin Filtschew<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/konstantin.filtschew.de\/blog\/2007\/06\/28\/tmp-mit-noexec-unter-debian-linux\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\/tmp mit &quot;noexec&quot; unter Debian Linux - Konstantin Filtschew\" \/>\n<meta property=\"og:description\" content=\"Das \/tmp Verzeichnis beinhaltet eine Menge Dateien, die z.B. \u00fcber Uploadformulare oder Web-Applikationen auf den Rechner kommen und eventuell durch fehlerhafte Anwendungen ausgef\u00fchrt werden k\u00f6nnen. Dies passiert meistens nur in dem \/tmp Verzeichnis, da alle Dateien \u00fcber den Webserver meistens zuerst an diesen Ort kopiert werden oder fast jeder Benutzer auf dem System Zugriff auf [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/konstantin.filtschew.de\/blog\/2007\/06\/28\/tmp-mit-noexec-unter-debian-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"Konstantin Filtschew\" \/>\n<meta property=\"article:published_time\" content=\"2007-06-28T13:34:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2007-06-28T13:47:43+00:00\" \/>\n<meta name=\"author\" content=\"Konstantin Filtschew\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@fa11enangel\" \/>\n<meta name=\"twitter:site\" content=\"@fa11enangel\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"Konstantin Filtschew\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u00a0Minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/konstantin.filtschew.de\/blog\/2007\/06\/28\/tmp-mit-noexec-unter-debian-linux\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/konstantin.filtschew.de\/blog\/2007\/06\/28\/tmp-mit-noexec-unter-debian-linux\/\"},\"author\":{\"name\":\"Konstantin Filtschew\",\"@id\":\"https:\/\/konstantin.filtschew.de\/blog\/#\/schema\/person\/de09aadf27dd3b71cb0030f6f2214b1e\"},\"headline\":\"\/tmp mit &#8222;noexec&#8220; unter Debian Linux\",\"datePublished\":\"2007-06-28T13:34:15+00:00\",\"dateModified\":\"2007-06-28T13:47:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/konstantin.filtschew.de\/blog\/2007\/06\/28\/tmp-mit-noexec-unter-debian-linux\/\"},\"wordCount\":231,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/konstantin.filtschew.de\/blog\/#\/schema\/person\/de09aadf27dd3b71cb0030f6f2214b1e\"},\"articleSection\":[\"Linux\",\"Sicherheit\"],\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/konstantin.filtschew.de\/blog\/2007\/06\/28\/tmp-mit-noexec-unter-debian-linux\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/konstantin.filtschew.de\/blog\/2007\/06\/28\/tmp-mit-noexec-unter-debian-linux\/\",\"url\":\"https:\/\/konstantin.filtschew.de\/blog\/2007\/06\/28\/tmp-mit-noexec-unter-debian-linux\/\",\"name\":\"\/tmp mit \\\"noexec\\\" unter Debian Linux - Konstantin Filtschew\",\"isPartOf\":{\"@id\":\"https:\/\/konstantin.filtschew.de\/blog\/#website\"},\"datePublished\":\"2007-06-28T13:34:15+00:00\",\"dateModified\":\"2007-06-28T13:47:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/konstantin.filtschew.de\/blog\/2007\/06\/28\/tmp-mit-noexec-unter-debian-linux\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/konstantin.filtschew.de\/blog\/2007\/06\/28\/tmp-mit-noexec-unter-debian-linux\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/konstantin.filtschew.de\/blog\/2007\/06\/28\/tmp-mit-noexec-unter-debian-linux\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Startseite\",\"item\":\"https:\/\/konstantin.filtschew.de\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\/tmp mit &#8222;noexec&#8220; unter Debian Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/konstantin.filtschew.de\/blog\/#website\",\"url\":\"https:\/\/konstantin.filtschew.de\/blog\/\",\"name\":\"Konstantin Filtschew\",\"description\":\"Der t\u00e4gliche IT-Wahnsinn\",\"publisher\":{\"@id\":\"https:\/\/konstantin.filtschew.de\/blog\/#\/schema\/person\/de09aadf27dd3b71cb0030f6f2214b1e\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/konstantin.filtschew.de\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/konstantin.filtschew.de\/blog\/#\/schema\/person\/de09aadf27dd3b71cb0030f6f2214b1e\",\"name\":\"Konstantin Filtschew\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\/\/konstantin.filtschew.de\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/konstantin.filtschew.de\/blog\/wp-content\/uploads\/2025\/10\/KFLogo1.png\",\"contentUrl\":\"https:\/\/konstantin.filtschew.de\/blog\/wp-content\/uploads\/2025\/10\/KFLogo1.png\",\"width\":222,\"height\":193,\"caption\":\"Konstantin Filtschew\"},\"logo\":{\"@id\":\"https:\/\/konstantin.filtschew.de\/blog\/#\/schema\/person\/image\/\"},\"description\":\"Building an operation system without source code, is like buying a self assemble space shuttle without instructions. (Author unknown)\",\"sameAs\":[\"https:\/\/konstantin.filtschew.de\",\"https:\/\/www.linkedin.com\/in\/konstantin-filtschew-b7138019\/\",\"https:\/\/x.com\/fa11enangel\"],\"url\":\"https:\/\/konstantin.filtschew.de\/blog\/author\/konstantin-filtschew\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\/tmp mit \"noexec\" unter Debian Linux - Konstantin Filtschew","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:\/\/konstantin.filtschew.de\/blog\/2007\/06\/28\/tmp-mit-noexec-unter-debian-linux\/","og_locale":"de_DE","og_type":"article","og_title":"\/tmp mit \"noexec\" unter Debian Linux - Konstantin Filtschew","og_description":"Das \/tmp Verzeichnis beinhaltet eine Menge Dateien, die z.B. \u00fcber Uploadformulare oder Web-Applikationen auf den Rechner kommen und eventuell durch fehlerhafte Anwendungen ausgef\u00fchrt werden k\u00f6nnen. Dies passiert meistens nur in dem \/tmp Verzeichnis, da alle Dateien \u00fcber den Webserver meistens zuerst an diesen Ort kopiert werden oder fast jeder Benutzer auf dem System Zugriff auf [&hellip;]","og_url":"https:\/\/konstantin.filtschew.de\/blog\/2007\/06\/28\/tmp-mit-noexec-unter-debian-linux\/","og_site_name":"Konstantin Filtschew","article_published_time":"2007-06-28T13:34:15+00:00","article_modified_time":"2007-06-28T13:47:43+00:00","author":"Konstantin Filtschew","twitter_card":"summary_large_image","twitter_creator":"@fa11enangel","twitter_site":"@fa11enangel","twitter_misc":{"Verfasst von":"Konstantin Filtschew","Gesch\u00e4tzte Lesezeit":"1\u00a0Minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/konstantin.filtschew.de\/blog\/2007\/06\/28\/tmp-mit-noexec-unter-debian-linux\/#article","isPartOf":{"@id":"https:\/\/konstantin.filtschew.de\/blog\/2007\/06\/28\/tmp-mit-noexec-unter-debian-linux\/"},"author":{"name":"Konstantin Filtschew","@id":"https:\/\/konstantin.filtschew.de\/blog\/#\/schema\/person\/de09aadf27dd3b71cb0030f6f2214b1e"},"headline":"\/tmp mit &#8222;noexec&#8220; unter Debian Linux","datePublished":"2007-06-28T13:34:15+00:00","dateModified":"2007-06-28T13:47:43+00:00","mainEntityOfPage":{"@id":"https:\/\/konstantin.filtschew.de\/blog\/2007\/06\/28\/tmp-mit-noexec-unter-debian-linux\/"},"wordCount":231,"commentCount":0,"publisher":{"@id":"https:\/\/konstantin.filtschew.de\/blog\/#\/schema\/person\/de09aadf27dd3b71cb0030f6f2214b1e"},"articleSection":["Linux","Sicherheit"],"inLanguage":"de","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/konstantin.filtschew.de\/blog\/2007\/06\/28\/tmp-mit-noexec-unter-debian-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/konstantin.filtschew.de\/blog\/2007\/06\/28\/tmp-mit-noexec-unter-debian-linux\/","url":"https:\/\/konstantin.filtschew.de\/blog\/2007\/06\/28\/tmp-mit-noexec-unter-debian-linux\/","name":"\/tmp mit \"noexec\" unter Debian Linux - Konstantin Filtschew","isPartOf":{"@id":"https:\/\/konstantin.filtschew.de\/blog\/#website"},"datePublished":"2007-06-28T13:34:15+00:00","dateModified":"2007-06-28T13:47:43+00:00","breadcrumb":{"@id":"https:\/\/konstantin.filtschew.de\/blog\/2007\/06\/28\/tmp-mit-noexec-unter-debian-linux\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/konstantin.filtschew.de\/blog\/2007\/06\/28\/tmp-mit-noexec-unter-debian-linux\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/konstantin.filtschew.de\/blog\/2007\/06\/28\/tmp-mit-noexec-unter-debian-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Startseite","item":"https:\/\/konstantin.filtschew.de\/blog\/"},{"@type":"ListItem","position":2,"name":"\/tmp mit &#8222;noexec&#8220; unter Debian Linux"}]},{"@type":"WebSite","@id":"https:\/\/konstantin.filtschew.de\/blog\/#website","url":"https:\/\/konstantin.filtschew.de\/blog\/","name":"Konstantin Filtschew","description":"Der t\u00e4gliche IT-Wahnsinn","publisher":{"@id":"https:\/\/konstantin.filtschew.de\/blog\/#\/schema\/person\/de09aadf27dd3b71cb0030f6f2214b1e"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/konstantin.filtschew.de\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"},{"@type":["Person","Organization"],"@id":"https:\/\/konstantin.filtschew.de\/blog\/#\/schema\/person\/de09aadf27dd3b71cb0030f6f2214b1e","name":"Konstantin Filtschew","image":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/konstantin.filtschew.de\/blog\/#\/schema\/person\/image\/","url":"https:\/\/konstantin.filtschew.de\/blog\/wp-content\/uploads\/2025\/10\/KFLogo1.png","contentUrl":"https:\/\/konstantin.filtschew.de\/blog\/wp-content\/uploads\/2025\/10\/KFLogo1.png","width":222,"height":193,"caption":"Konstantin Filtschew"},"logo":{"@id":"https:\/\/konstantin.filtschew.de\/blog\/#\/schema\/person\/image\/"},"description":"Building an operation system without source code, is like buying a self assemble space shuttle without instructions. (Author unknown)","sameAs":["https:\/\/konstantin.filtschew.de","https:\/\/www.linkedin.com\/in\/konstantin-filtschew-b7138019\/","https:\/\/x.com\/fa11enangel"],"url":"https:\/\/konstantin.filtschew.de\/blog\/author\/konstantin-filtschew\/"}]}},"_links":{"self":[{"href":"https:\/\/konstantin.filtschew.de\/blog\/wp-json\/wp\/v2\/posts\/99","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/konstantin.filtschew.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/konstantin.filtschew.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/konstantin.filtschew.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/konstantin.filtschew.de\/blog\/wp-json\/wp\/v2\/comments?post=99"}],"version-history":[{"count":0,"href":"https:\/\/konstantin.filtschew.de\/blog\/wp-json\/wp\/v2\/posts\/99\/revisions"}],"wp:attachment":[{"href":"https:\/\/konstantin.filtschew.de\/blog\/wp-json\/wp\/v2\/media?parent=99"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/konstantin.filtschew.de\/blog\/wp-json\/wp\/v2\/categories?post=99"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/konstantin.filtschew.de\/blog\/wp-json\/wp\/v2\/tags?post=99"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}