Use 'sftpusers' as default SFTP chroot group, drop 'sftp-chroot'
- create_vhost.sh: SFTP_CHROOT_GROUP defaults to 'sftpusers'. Fallback to 'sftpusers' only if a different, non-existing group is configured. Messages list only the groups actually tried. - create_vhost.conf.sample: example sshd Match block and default now use 'sftpusers'. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fec60403d1
commit
7a0e1efc3f
2 files changed
+15
-10
No files matched your search
@@ -77,13 +77,13 @@
|
||||
# - and "static site with suEXEC (chrooted SFTP access)").
|
||||
# -
|
||||
# - The suEXEC user is added to this group, if it exists. Otherwise it is
|
||||
# - added to group 'sftpusers' (if exists). If neither group exists, the
|
||||
# - added to group 'sftpusers' (if exists). If no such group exists, the
|
||||
# - user is not added to any SFTP group. (The group is not created.)
|
||||
# -
|
||||
# - sshd must restrict members of this group, i.e. at the end of
|
||||
# - /etc/ssh/sshd_config:
|
||||
# -
|
||||
# - Match Group sftp-chroot
|
||||
# - Match Group sftpusers
|
||||
# - ChrootDirectory %h
|
||||
# - ForceCommand internal-sftp -u 0027
|
||||
# - AllowTcpForwarding no
|
||||
@@ -92,6 +92,6 @@
|
||||
# - PermitTunnel no
|
||||
# - PermitTTY no
|
||||
# -
|
||||
# - Defaults to 'sftp-chroot'
|
||||
# - Defaults to 'sftpusers'
|
||||
# -
|
||||
#SFTP_CHROOT_GROUP=""
|
||||
#SFTP_CHROOT_GROUP="sftpusers"
|
||||
Reference in new issue
Block a user