How to Disable User Crontab in Linux

Berikut meruapakan panduan singkat cara menonaktifkan crontab pada user tertentu di Linux.

Akses SSH ke server sebagai user root.

sudo -s

Selanjutnya edit atau buat file baru /etc/cron.deny.

nano /etc/cron.deny

Tambahkan user yang akan dinonaktifkan crontabnya.

web1

Setelah itu login sebagai user web1.

su - web1

Kemudian jalankan perintah crontab.

$ crontab  -l
You (web1) are not allowed to use this program (crontab)
See crontab(1) for more information