title: disable cron for "www-data" user
body: <p>My old debian server is running php as dso and some malicious scripts are always adding cron for system user "www-data".  I could see too many malicious crons getting added for this user some how.  As the server is running php as dso, we are unable to track the exact process adding the cron. </p>
  
  <p>Q.  How can i disable "www-data" from adding crons further. like disabling entire cron mechanism for the user?  Is that possible?</p>
  
  <p>Q.  How can we find which php script does this cron edit?</p>
  
  <p>I could see the below in cron documentation. </p>
  
  <p>"at.allow and at.deny"</p>
  
  <p>You can also use the /etc/at.allow and /etc/at.deny files to manage who can schedule jobs with at.</p>
  
  <p>The /etc/at.allow file can contain a list of users that are allowed to schedule at jobs. When /etc/at.allow does not exist, then everyone can use at unless their username is listed in /etc/at.deny.</p>
  
  <p>There is  /etc/at.deny file and "www-data" is there meanwhile it still can execute crons</p>