Announcement

Collapse
No announcement yet.

How can I see what crons each user has running?

Collapse
This topic is closed.
X
This is a sticky topic.
X
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How can I see what crons each user has running?

    You would have to run this as root, but:

    Code:
       for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l; done
    will loop over each user name listing out their crontab. The crontabs are owned by the respective users so you won't be able to see another user's crontab w/o being them or root.

    --[edit] if you want to know, which user does a crontab belong to insert echo $user

    Code:
       for user in $(cut -f1 -d: /etc/passwd); do echo $user; crontab -u $user -l; done
    Source: http://stackoverflow.com/questions/1...-for-all-users
    www.AYKsolutions.com
    From Shared to Dedicated
    Professional. Painless. Polite.
Working...
X