From 9a831a484445d6ba0007c312ab9d6a16ead07039 Mon Sep 17 00:00:00 2001 From: Christoph Date: Mon, 16 Nov 2026 13:57:04 +0100 Subject: [PATCH] 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 --- create_vhost.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/create_vhost.sh b/create_vhost.sh index db33af4..67c57ca 100755 --- a/create_vhost.sh +++ b/create_vhost.sh @@ -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