chmod 1777 /mnt/tmp

George Melikov 2018-09-28 13:23:10 +03:00
parent f3841536fd
commit 08bc2c4753
1 changed files with 1 additions and 0 deletions

@ -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.