- Plesk for Linux
- All chrooted domains having
/bin/bash (chrooted)set in Access to the server over SSH contains the same files with permission differs from root inside
- Chroot template folder Owner is set incorrectly in chroot template:
# ls -la /var/www/vhosts/chroot/bin/ | egrep -v 'root|total'
-rwxr-xr-x 2 jdoe psacln 151024 Feb 18 2016 /var/www/vhosts/chroot/bin/cp
-rwxr-xr-x 2 jdoe psacln 151024 Feb 18 2016 /var/www/vhosts/chroot/bin/grep
Programs were added to the template incorrectly.
Reset ownership of all files inside
/var/www/vhosts/chroot/bin/ to the correct one with the following command:
# chown -R root.root /var/www/vhosts/chroot/bin/
update_chroot.sh script from the following article in future to avoid such issues:
How to add new programs to a chrooted shell environment template?