From b2d60382bab88ecc1f071f3f25fa841d2295033f Mon Sep 17 00:00:00 2001 From: Richard Laager Date: Mon, 1 Feb 2021 13:10:19 -0600 Subject: [PATCH] Debian & Ubuntu: chmod 700 /root "The /root dataset is created with default world-readable permissions (755). debootstrap would create /root with 700 permissions, but it does not change the permissions if it already exists." Reported-by: zxyrepf Closes #115 --- docs/Getting Started/Debian/Debian Buster Root on ZFS.rst | 1 + docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS.rst | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/Getting Started/Debian/Debian Buster Root on ZFS.rst b/docs/Getting Started/Debian/Debian Buster Root on ZFS.rst index b0e8f5c..0fd1025 100644 --- a/docs/Getting Started/Debian/Debian Buster Root on ZFS.rst +++ b/docs/Getting Started/Debian/Debian Buster Root on ZFS.rst @@ -433,6 +433,7 @@ Step 3: System Installation zfs create rpool/home zfs create -o mountpoint=/root rpool/home/root + chmod 700 /mnt/root zfs create -o canmount=off rpool/var zfs create -o canmount=off rpool/var/lib zfs create rpool/var/log diff --git a/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS.rst b/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS.rst index 0b30bbd..6568c48 100644 --- a/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS.rst +++ b/docs/Getting Started/Ubuntu/Ubuntu 20.04 Root on ZFS.rst @@ -610,6 +610,7 @@ Step 3: System Installation zfs create -o com.ubuntu.zsys:bootfs-datasets=rpool/ROOT/ubuntu_$UUID \ -o canmount=on -o mountpoint=/root \ rpool/USERDATA/root_$UUID + chmod 700 /mnt/root For a mirror or raidz topology, create a dataset for ``/boot/grub``::