• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

UNIX / Linux : How crontab validates the access based on the cron.allow and cron.deny files

By admin

To allow or deny access to specific users, crontab uses the files /etc/cron.allow and /etc/cron.deny. Based on the existence of /etc/cron.allow and /etc/cron.deny files, crontab decides whom to give access to cron in following order.

  1. If cron.allow exists – only the users listed in the file cron.allow will get an access to crontab.
  2. If cron.allow does not exist – all users except the users listed into cron.deny can use crontab
  3. If neither of the file exists – only the root can use crontab
  4. If a user is listed in both cron.allow and cron.deny – that user can use crontab.

Filed Under: Linux

Some more articles you might also be interested in …

  1. How To Use distro-sync Option With dnf To Upgrade OS (CentOS/RHEL 8)
  2. How to add or delete a samba user under Linux
  3. CentOS / RHEL 7 : How to configure cache-only nameserver
  4. CentOS / RHEL : How to Change the login shell of the user
  5. Which network ports are reserved by the Linux Operating System?
  6. How to set “max_report_luns” and “max_luns” on CentOS/RHEL 7 to scan more than 16,383 LUNs
  7. How to Increase the File Download Size Limit in Apache
  8. Beginners Guide to Swap Space Management in Linux
  9. How to enable md5 Hashing in Linux
  10. Using vmstat to troubleshoot performance issues in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • How to disable ICMP redirects on CentOS/RHEL
  • What are Oracle Key Vault Roles
  • What Is Oracle Key Vault
  • Auditing with Oracle Database Vault Reports
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary