Hello everyone,
So I'm a pretty new cPanel user (as in, running a server with cPanel as the control panel) and I have a question about the way cPanel handles CRON jobs for the various user accounts on the machine.
Is there any way to limit which commands the users can execute on their CRON tasks?
We all know that 99% of the reasons why CRON is used in a web hosting environment is to execute a scripted page at a regular interval. There's no reason why someone should be able to execute anything else than 'wget' or even 'php' in a shared hosting environment.
By letting the users execute anything, they can run potential malware (more specifically, code that exploits unpatched security holes which can potentially allow the user to gain privilege) on the machine or even a new service of their own. I've seen forum threads which explain on how to use CRON tasks to run a game server from a shared hosting account! (This assumes that the machine has no firewall, but still)
I'd much appreciate any replies, comments, suggestions, and answers.
Thanks!



LinkBack URL
About LinkBacks
Reply With Quote





