Interview Prep/Linux/Permissions, ownership, SELinux and mounts

A user's crontab edit fails with `You (alice) are not allowed to use this program (crontab)`.

BeginnerTroubleshootingPermissions, ownership, SELinux and mounts
Answer

Likely causes → /etc/cron.allow exists and doesn't list the user, or the user is in /etc/cron.deny.

Diagnose →

ls -l /etc/cron.allow /etc/cron.deny
grep -w alice /etc/cron.allow /etc/cron.deny

Fix → Add the user to cron.allow (or remove them from cron.deny) if policy allows.

Prevent → Manage these files in config management with the approved user list.

All Linux questions Roadmap: Linux

More on Permissions, ownership, SELinux and mounts