Skip to content

Commit

Permalink
Fix add new user home dir permission
Browse files Browse the repository at this point in the history
  • Loading branch information
joglomedia committed Jul 8, 2024
1 parent 030caec commit a2d8f8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/lemper-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,7 @@ function init_lemper_create() {
run touch "/home/${USERNAME}/logs/php/php${PHP_VERSION}-fpm_slow.log" && \
run touch "/home/${USERNAME}/logs/php/php${PHP_VERSION}-fpm_error.log" && \
run touch "/home/${USERNAME}/logs/php/php${PHP_VERSION}-opcache_error.log" && \
run chmod 644 "/home/${USERNAME}" && \
run chmod 755 "/home/${USERNAME}" && \
run chown -hR "${USERNAME}:${USERNAME}" "/home/${USERNAME}/.lemper" "/home/${USERNAME}/cgi-bin" "/home/${USERNAME}/logs"

# Restart PHP FPM.
Expand Down
2 changes: 1 addition & 1 deletion scripts/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a2d8f8d

Please sign in to comment.