QuestionQ74

Users and Groups

Where are the crontabs specific to individual users kept?

  • A In the database file /etc/crontab.db which is shared by all users.
  • B As individual per-user files within /var/spool/cron.
  • C As individual per-user files in /etc/cron.user.d.
  • D In the .crontab file in the user's home directory.
  • E In the file /var/cron/user-crontab which is shared by all users.
Explanation

Standard cron implementations (such as Vixie cron used on most Linux distributions) store each user's crontab as a separate file named after that user, located in the /var/spool/cron directory (on some systems specifically /var/spool/cron/crontabs). These files are managed via the crontab command rather than being edited directly, and access to them is controlled through /etc/cron.allow and /etc/cron.deny.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!