Commit Graph
3 Commits
Author SHA1 Message Date
chrisandClaude Opus 5.5 d650fb499a set_suexec_users_nologin.sh: skip users with ssh keys, no error if no suexec users.
- Users with a non-empty ~/.ssh/authorized_keys are skipped, they would
  lose their ssh/sftp access with shell '/usr/sbin/nologin'.
- Finding no suexec users at all is reported as info (exit 0), not as fatal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 13:44:52 +01:00
chrisandClaude Opus 5.5 95034598b0 set_suexec_users_nologin.sh: backup /etc/passwd only before the first real change.
A run without changes no longer creates (and removes) a backup file, and
a second run within the same minute can no longer overwrite the backup of
the previous run. Backup timestamp now includes seconds; an existing backup
file is never overwritten.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 13:40:02 +01:00
chrisandClaude Opus 5.5 5da75e1fc0 Add script 'set_suexec_users_nologin.sh'.
Sets the login shell of all suexec users (SuexecUserGroup in active vhost
configurations) from '/bin/bash' to '/usr/sbin/nologin'.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 13:31:38 +01:00