mirror of
https://github.com/rwinkhart/artix-install-script.git
synced 2026-09-03 23:47:25 -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
|
mkdir /home/"$username"/.ssh
|
||||||
touch /home/"$username"/.ssh/authorized_keys
|
touch /home/"$username"/.ssh/authorized_keys
|
||||||
chown -R "$username" /home/"$username"/.ssh
|
chown -R "$username" /home/"$username"/.ssh
|
||||||
|
chmod 600 /home/"$username"/.ssh/authorized_keys
|
||||||
|
|
||||||
# misc configuration
|
# misc configuration
|
||||||
if [ "$swap" -gt 0 ]; then
|
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
|
pacman -S neofetch htop --needed --noconfirm
|
||||||
rc-update add local default
|
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
|
# finishing up + cleaning
|
||||||
rm -rf /chrootInstall.sh /tempfiles
|
rm -rf /chrootInstall.sh /tempfiles
|
||||||
echo -e "\n---------------------------------------------------------"
|
echo -e "\n---------------------------------------------------------"
|
||||||
|
|||||||
Reference in New Issue
Block a user