Preventing Specific User to Run CRON

mohit

Well-Known Member
Jul 12, 2005
553
0
166
Sticky On Internet
hi,
any ideas, how do i prevent a specific user to be able to use cron, he sends a lots of mail using a php script to his users who haven't logged into his matrimony site.

Also is there any way to prevent his mysql scripts cause high memory loads ?

Thanx in advance.
mohit
 

nickb

Well-Known Member
Feb 25, 2005
346
0
166
India
You can remove crontab and mysql from the feature list assigned to this account.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
Blocking crontab use depends on your OS as different ones use different cron daemons. On most Linux distributions vixie cron is used and you can use /etc/cron.deny and /etc/cron.allow files (man crontab for details).