Which file holds the list of users that are NOT allowed to use cron ?

Answer: /etc/cron.d/cron.deny

Showing Answers 1 - 1 of 1 Answers

1.To deny cron access the cron daemon checks if the file /etc/cron.deny exists and if it does then it checks all users listed there for whom cron access has to be denied.
2. If /etc/cron.deny does not exist and the file /etc/cron.allow exists then ONLY the users who are listed in this file are given cron access.
3. If both the files exist and if a particular user is listed in both the files then the user is given access.This is because of the reason that when the user is available in the /etc/corn.allow file, cron ignores /etc/dron.deny
Hope that suffices.
Regards,
Ravi

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions