| Linux hosting5.siteguarding.com 3.10.0-962.3.2.lve1.5.88.el7.x86_64 #1 SMP Fri Sep 26 14:06:42 UTC 2025 x86_64 Path : /usr/share/cagefs-plugins/hooks/ |
| Current File : //usr/share/cagefs-plugins/hooks/jail_shell_disable.sh |
#!/bin/bash
# Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2019 All Rights Reserved
#
# Licensed under CLOUD LINUX LICENSE AGREEMENT
# http://cloudlinux.com/docs/LICENSE.TXT
whmapi1 set_tweaksetting key=jaildefaultshell value=0
for u in `cat /etc/passwd | grep /usr/local/cpanel/bin/jailshell | cut -d: -f 1 ` ;
do
chsh -s /bin/bash $u &>/dev/null
/bin/sed -i -e "s/SHELL=\"\/usr\/local\/cpanel\/bin\/jailshell\"/SHELL=\"\/bin\/bash\"/g" /var/spool/cron/$u
done
if [ -e /scripts/clear_orphaned_virtfs_mounts ]; then
/scripts/clear_orphaned_virtfs_mounts --clearall &>/dev/null
for i in `cat /proc/mounts | grep /home/virtfs | cut -d ' ' -f 2 ` ; do umount $i ; done
fi