Step 1: Create cron.allow File
sudo touch /etc/cron.allow
sudo chmod 644 /etc/cron.allowStep 2: Add Root Only
echo "root" | sudo tee /etc/cron.allowStep 3: Ensure cron.deny Exists (Optional)
sudo touch /etc/cron.denyStep 4: Remove Other Users from cron.allow
sudo nano /etc/cron.allowStep 5: Test
crontab -l # should work for root only
sudo -u username crontab -l # should fail