From 08bc2c47538178267120f411947e693cc2ba2f69 Mon Sep 17 00:00:00 2001 From: George Melikov Date: Fri, 28 Sep 2018 13:23:10 +0300 Subject: [PATCH] chmod 1777 /mnt/tmp --- Debian-Stretch-Root-on-ZFS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Debian-Stretch-Root-on-ZFS.md b/Debian-Stretch-Root-on-ZFS.md index 3096e9a..72088f0 100644 --- a/Debian-Stretch-Root-on-ZFS.md +++ b/Debian-Stretch-Root-on-ZFS.md @@ -139,6 +139,7 @@ Now you can create datasets: If you want a separate /tmp dataset (choose this now or tmpfs later): # zfs create -o com.sun:auto-snapshot=false \ -o setuid=off rpool/tmp + # chmod 1777 /mnt/tmp If you do nothing extra, `/tmp` will be stored as part of the root filesystem. Alternatively, you can create a separate dataset for `/tmp`, as shown above. This keeps the `/tmp` data out of snapshots of your root filesystem. It also allows you to set a quota on `rpool/tmp`, if you want to limit the maximum space used. Otherwise, you can use a tmpfs (RAM filesystem) later.