From e0edc239aca1062216f39e3ddc6e630ec229ae7e Mon Sep 17 00:00:00 2001 From: ene Date: Mon, 3 Apr 2023 16:26:03 +0200 Subject: Fix(bootstrap/setup): Permissions for persistent home --- bootstrap/setup/setup.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bootstrap/setup/setup.sh b/bootstrap/setup/setup.sh index 6cbd8ee1..d8007a14 100755 --- a/bootstrap/setup/setup.sh +++ b/bootstrap/setup/setup.sh @@ -29,8 +29,9 @@ nixos-install --flake git+https://git.sils.li/ene/nixos-config#${host} --no-root git clone https://git.sils.li/ene/nixos-config /mnt/srv/etc/nixos # setup persistent home dir -mkdir -p /mnt/srv/home -chmod 777 /mnt/srv/home +mkdir --parents /mnt/srv/home +chown 1000:100 --recursive /mnt/srv/home +chmod 700 /mnt/srv/home readp "Do you want to continue with the user configuration setup?[N/y]: " result; case "$result" in -- cgit 1.4.1