Ever wondered how to list all the cron entries of all users on WHM/cPanel based servers
I have been trying to find a way to list all cron entries of my clients just to make sure things are in proper place.
Here is the small piece of code that helps
for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l; done
crontab -l helps in listing root cron entries only. It does not list cron entries of users created through WHM interface.