Fix add new user home dir permission

This commit is contained in:
Edi Septriyanto
2024-07-08 08:17:08 +07:00
parent 030caec3b6
commit a2d8f8dca0
2 changed files with 2 additions and 2 deletions

View File

@@ -693,7 +693,7 @@ function create_account() {
run chmod 700 "/home/${LEMPER_USERNAME}/.ssh" && \
run touch "/home/${LEMPER_USERNAME}/.ssh/authorized_keys" && \
run chmod 600 "/home/${LEMPER_USERNAME}/.ssh/authorized_keys" && \
run chmod 644 "/home/${LEMPER_USERNAME}" && \
run chmod 755 "/home/${LEMPER_USERNAME}" && \
run chown -hR "${LEMPER_USERNAME}:${LEMPER_USERNAME}" "/home/${LEMPER_USERNAME}"
# Add account credentials to /srv/.htpasswd.