1
Fork 0

Fix permissions

This commit is contained in:
Hadeed 2024-11-17 15:26:28 +05:00
parent 6cbf6af44e
commit e74627bff0

View file

@ -23,7 +23,8 @@ EOF
cd "$USER_HOME" cd "$USER_HOME"
rm -rf Desktop Documents Downloads Music Pictures Public Templates Videos rm -rf Desktop Documents Downloads Music Pictures Public Templates Videos
mkdir dl docs pics mkdir -p dl docs pics
chown "$USER" dl docs pics
su - "$USER" -c "xdg-user-dirs-update" su - "$USER" -c "xdg-user-dirs-update"
su - "$USER" <<EOF su - "$USER" <<EOF
@ -32,4 +33,5 @@ su - "$USER" <<EOF
EOF EOF
mkdir "$USER_HOME/.ssh" mkdir "$USER_HOME/.ssh"
chown "$USER" "$USER_HOME/.ssh"
chmod 700 "$USER_HOME/.ssh" chmod 700 "$USER_HOME/.ssh"