jailkit section changes don't get propagated when re-syncing shell accounts
I discovered I forgot to add a jailkit section to the server config. After adding it, removing a shell user and recreating the shell user the section (files) was added to the chroot.
Now I started a re-sync for all shell users on that server expecting to get this new section for all shell accounts. This is not the case.
correct behaviour
I expected the newly added section to become active for all exiting shell users on re-sync.
environment
Server OS: Centos Server OS version: 7 ISPConfig version: 3.1.11
proposed fix
for sure, but now I use the following as a work around on the commandline.
!#/bin/bash
for PATH in `grep jk_chrootsh /etc/passwd |grep ^web | cut -f1 -d\. | cut -f2- -d\/`; do
/usr/local/ispconfig/server/scripts/create_jailkit_chroot.sh /$PATH 'basicshell editors extendedshell netutils ssh sftp scp groups jk_lsh extra_section'
done
Edited by Justin