Skip to content

Commit 5c98cf4

Browse files
authored
add hestiamail to hestia-users (hestiacp#4531)
add hestiamail to hestia-users
1 parent c68f540 commit 5c98cf4

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

install/hst-install-debian.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,6 +1173,8 @@ echo hestiaweb:$random_password | sudo chpasswd -e
11731173

11741174
# Create user for php-fpm configs
11751175
/usr/sbin/useradd "hestiamail" -c "$email" --no-create-home
1176+
# Ensures proper permissions for Hestia service interactions.
1177+
/usr/sbin/adduser hestiamail hestia-users
11761178

11771179
# Enable SFTP subsystem for SSH
11781180
sftp_subsys_enabled=$(grep -iE "^#?.*subsystem.+(sftp )?sftp-server" /etc/ssh/sshd_config)

install/hst-install-ubuntu.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1170,6 +1170,8 @@ echo hestiaweb:$random_password | sudo chpasswd -e
11701170

11711171
# Create user for php-fpm configs
11721172
/usr/sbin/useradd "hestiamail" -c "$email" --no-create-home
1173+
# Ensures proper permissions for Hestia service interactions.
1174+
/usr/sbin/adduser hestiamail hestia-users
11731175

11741176
# Enable SFTP subsystem for SSH
11751177
sftp_subsys_enabled=$(grep -iE "^#?.*subsystem.+(sftp )?sftp-server" /etc/ssh/sshd_config)

install/upgrade/versions/1.8.12.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,6 @@ if [ -d "$RC_LOG" ]; then
5252
fi
5353

5454
sed -i "s/disable_functions =.*/disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority/g" /etc/php/*/cli/php.ini
55+
56+
# Ensures proper permissions for Hestia service interactions.
57+
/usr/sbin/adduser hestiamail hestia-users

install/upgrade/versions/1.9.0.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,5 @@ fi
9797

9898
$BIN/v-add-user-notification 'admin' 'Hestia security has been upgraded' ' A new user "hestiaweb" has been created and is used for login. Make sure other Hestia packages are updated as well otherwise the system may not work as expected.'
9999
add_upgrade_message 'Security has been upgraded, A new user "hestiaweb" has been created and is used for login. Make sure other Hestia packages are updated as well otherwise the system may not work as expected.'
100+
# Ensures proper permissions for Hestia service interactions.
101+
/usr/sbin/adduser hestiamail hestia-users

0 commit comments

Comments
 (0)