Hello,
I have for all my users disabled Shell Access
but I see jailshell activity on the server
like the folders been created :
# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/simfs 734003200 86170816 647832384 12% /home/virtfs/livecomg/lib
/dev/simfs 734003200 86170816 647832384 12% /home/virtfs/livecomg/bin
/dev/simfs 734003200 86170816 647832384 12% /home/virtfs/livecomg/sbin
/dev/simfs 734003200 86170816 647832384 12% /home/virtfs/livecomg/opt
/dev/simfs 734003200 86170816 647832384 12% /home/virtfs/livecomg/lib64
/dev/simfs 734003200 86170816 647832384 12% /home/virtfs/livecomg/usr
/dev/simfs 734003200 86170816 647832384 12% /home/virtfs/livecomg/var
/dev/simfs 734003200 86170816 647832384 12% /home/virtfs/livecomg/var/spool
/dev/simfs 734003200 86170816 647832384 12% /home/virtfs/livecomg/var/log
/dev/simfs 734003200 86170816 647832384 12% /home/virtfs/livecomg/etc/mail
/dev/simfs 734003200 86170816 647832384 12% /home/virtfs/livecomg/tmp
/dev/simfs 734003200 86170816 647832384 12% /home/virtfs/livecomg/var/tmp
none 4169728 4 4169724 1% /home/virtfs/livecomg/dev
/dev/simfs 734003200 86170816 647832384 12% /home/virtfs/livecomg/usr/sbin
/dev/simfs 734003200 86170816 647832384 12% /home/virtfs/livecomg/home/livecomg
so I do a further check
root@[/var/log]# cat /etc/passwd | grep livecomg
livecomg:x:***:***::/home/livecomg:/usr/local/cpanel/bin/noshell
again there is no shell or jail shell installed for that user
and so I removed tha virtfs folders and later I saw what was executed to create them :
at top I saw something called via cron: /usr/local/cpanel/bin/jailshell -c php -f /home/livecomg/public_html/domain.tld/cronjobs/cron_address.php
I did check the client's cron settings inside cpanel and I just saw:
Minute Hour Day Month Weekday Command Actions
*/10 * * * * php -f /home/livecomg/public_html/domain.tld/cronjobs/cron_address.php
so it seems cPanel it self uses jailshell for cron,
how can I stop that ?
I have for all my users disabled Shell Access
but I see jailshell activity on the server
like the folders been created :
# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/simfs 734003200 86170816 647832384 12% /home/virtfs/livecomg/lib
/dev/simfs 734003200 86170816 647832384 12% /home/virtfs/livecomg/bin
/dev/simfs 734003200 86170816 647832384 12% /home/virtfs/livecomg/sbin
/dev/simfs 734003200 86170816 647832384 12% /home/virtfs/livecomg/opt
/dev/simfs 734003200 86170816 647832384 12% /home/virtfs/livecomg/lib64
/dev/simfs 734003200 86170816 647832384 12% /home/virtfs/livecomg/usr
/dev/simfs 734003200 86170816 647832384 12% /home/virtfs/livecomg/var
/dev/simfs 734003200 86170816 647832384 12% /home/virtfs/livecomg/var/spool
/dev/simfs 734003200 86170816 647832384 12% /home/virtfs/livecomg/var/log
/dev/simfs 734003200 86170816 647832384 12% /home/virtfs/livecomg/etc/mail
/dev/simfs 734003200 86170816 647832384 12% /home/virtfs/livecomg/tmp
/dev/simfs 734003200 86170816 647832384 12% /home/virtfs/livecomg/var/tmp
none 4169728 4 4169724 1% /home/virtfs/livecomg/dev
/dev/simfs 734003200 86170816 647832384 12% /home/virtfs/livecomg/usr/sbin
/dev/simfs 734003200 86170816 647832384 12% /home/virtfs/livecomg/home/livecomg
so I do a further check
root@[/var/log]# cat /etc/passwd | grep livecomg
livecomg:x:***:***::/home/livecomg:/usr/local/cpanel/bin/noshell
again there is no shell or jail shell installed for that user
and so I removed tha virtfs folders and later I saw what was executed to create them :
at top I saw something called via cron: /usr/local/cpanel/bin/jailshell -c php -f /home/livecomg/public_html/domain.tld/cronjobs/cron_address.php
I did check the client's cron settings inside cpanel and I just saw:
Minute Hour Day Month Weekday Command Actions
*/10 * * * * php -f /home/livecomg/public_html/domain.tld/cronjobs/cron_address.php
so it seems cPanel it self uses jailshell for cron,
how can I stop that ?