mirror of
https://github.com/rwinkhart/artix-install-script.git
synced 2026-08-28 21:06:27 -04:00
No longer force permissions over the entire home directory
This commit is contained in:
+1
-5
@@ -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---------------------------------------------------------"
|
||||
|
||||
Reference in New Issue
Block a user