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
This commit is contained in:
Richard Laager
2021-02-01 13:10:19 -06:00
parent d08af47f7a
commit b2d60382ba
2 changed files with 2 additions and 0 deletions

View File

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

View File

@@ -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``::