1

suppose user tom is having bunch of scheduled jobs and if add this user in cron.deny. Will this kill any running jobs for that user ?

I know it will deny to schedule jobs but will it stop the running jobs as well ?

Kunal
  • 11
  • 1

1 Answers1

0

Adding a user to cron.deny will not stop/kill the running job for that user. Adding a user to cron.deny will only blocks that user from being able to use crontab command only.

from man crontab:

If the /etc/cron.allow file exists, then you must be listed (one user per line) therein in order to be allowed to use this command. If the /etc/cron.allow file does not exist but the /etc/cron.deny file does exist, then you must not be listed in the /etc/cron.deny file in order to use this command.

this command meaning at above is refer to crontab command itself.

αғsнιη
  • 41,407