create_vhost.sh: create suEXEC user with shell '/usr/sbin/nologin'.

suexec doesn't need a login shell (only UID/GID and docroot are checked).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
chrisandClaude Opus 5.5 committed 2026-11-16 13:57:04 +01:00
1 parent d650fb499a
commit 9a831a4844
1 file changed
+4 -1
+4 -1
View File
@@ -2373,8 +2373,11 @@ if $_suEXEC ; then
fi
fi
#fi
# - suEXEC user doesn't need a login shell (suexec only checks UID/GID
# - and docroot), so use '/usr/sbin/nologin'
# -
echononl "\tAdding User \"$suEXEC_user\".."
useradd -g $suEXEC_group -d $_web_base_dir -s /bin/bash -m $suEXEC_user
useradd -g $suEXEC_group -d $_web_base_dir -s /usr/sbin/nologin -m $suEXEC_user
if [ "$?" = "0" ]; then
echo_ok
else