diff --git a/config/base.toml b/config/base.toml
index 8917741add531f76f0b84c2a8fe1be0209d11515..a3e606d61d7ef32ce05f039179e6abd25df6b389 100644
--- a/config/base.toml
+++ b/config/base.toml
@@ -20,6 +20,10 @@ ptyd = {}
 [[files]]
 path = "/etc/init.d/00_base"
 data = """
+# clear and recreate tmpdir with 0o1777 permission
+rm -r /tmp
+mkdir -m a=rwxt /tmp
+
 ipcd
 ptyd
 escalated
@@ -86,13 +90,6 @@ path = "/share"
 data = "usr/share"
 symlink = true
 
-## /tmp directory with special mode
-[[files]]
-path = "/tmp"
-data = ""
-directory = true
-mode = 0o1777
-
 ## Device file symlinks
 [[files]]
 path = "/dev/null"