mkdir -p /usr/share/cagefs-skeleton/usr/local/psa/bin/
cp -a /bin/bash /usr/share/cagefs-skeleton/usr/local/psa/bin/chrootsh
cagefsctl --force-update
This copies /bin/bash to /usr/local/psa/bin/chrootsh inside CageFS.
If a user gets excluded from CageFS his shell will still be chrooted, because it will default to /usr/local/psa/bin/chrootsh outside of CageFS.
sed -i s#;shell = /usr/local/psa/bin/chrootsh#shell = /usr/local/psa/bin/chrootsh# /usr/local/psa/admin/conf/site_isolation_settings.ini
This makes sure that customers can only select a chrooted shell, wether they are inside CageFS or not.
cp -a /bin/bash /usr/share/cagefs-skeleton/usr/local/psa/bin/chrootsh
cagefsctl --force-update
This copies /bin/bash to /usr/local/psa/bin/chrootsh inside CageFS.
If a user gets excluded from CageFS his shell will still be chrooted, because it will default to /usr/local/psa/bin/chrootsh outside of CageFS.
sed -i s#;shell = /usr/local/psa/bin/chrootsh#shell = /usr/local/psa/bin/chrootsh# /usr/local/psa/admin/conf/site_isolation_settings.ini
This makes sure that customers can only select a chrooted shell, wether they are inside CageFS or not.
Comment