No longer force permissions over the entire home directory

This commit is contained in:
2022-12-03 20:21:31 -05:00
parent db4d86a6aa
commit 8423ef654a
+1 -5
View File
@@ -175,6 +175,7 @@ pacman -S openssh --needed --noconfirm
mkdir /home/"$username"/.ssh
touch /home/"$username"/.ssh/authorized_keys
chown -R "$username" /home/"$username"/.ssh
chmod 600 /home/"$username"/.ssh/authorized_keys
# misc configuration
if [ "$swap" -gt 0 ]; then
@@ -188,11 +189,6 @@ echo 'pinentry-program /usr/bin/pinentry-tty' > /home/"$username"/.gnupg/gpg-age
pacman -S neofetch htop --needed --noconfirm
rc-update add local default
# setting home directory permissions
chmod -R 700 /home
chown -R "$username":users /home/"$username"
chmod 600 /home/"$username"/.ssh/authorized_keys
# finishing up + cleaning
rm -rf /chrootInstall.sh /tempfiles
echo -e "\n---------------------------------------------------------"