0

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 ?

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.

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.