for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l; done
That snippet will loop over each user in /etc/passwd listing out their crontab. The crontabs are owned by the respective users so you will not be able to see another user's crontab without doing this as root.
If this tip was useful to you, or you have a better way of doing the same thing, let me know by commenting below.
List all cron jobs for all users
How to view crontab for all users?
Not as elegant as you probably want, but this is what I do as root.
Related Entries
- Dec 16 2008sshd: error: Bind to port 22 on 0.0.0.0 failed: Address already in use0
- Dec 7 2008SCALE 7x - Southern California Linux Expo0
- Nov 22 2008How to view the contents of a CSR0
- Oct 29 2008How to speed up OpenOffice.org0
- May 21 2007Sendmail X-Authentication-Warning0
- Dec 13 2005Openfiler Storage Solution0
- Nov 15 2005How to mount a Windows share with Linux0
- Oct 31 2005Red Hat To Include Xen, Stateless Linux In Next Release0
2 Comments
Leave a comment
| Blog: |
| Tracy Phillips |
Topics: |
| linux, genealogy, me |
This is brilliant gentleman! In larger systems, I guess
it will be prettier cool to have the script do a report
(logs) then mail it over...
Good thinking Gilbert, you could mail them or maybe send them to a syslog server somehow.