LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   All crontab jobs from all users (https://www.linuxquestions.org/questions/linux-newbie-8/all-crontab-jobs-from-all-users-826988/)

booyeeka 08-18-2010 07:53 AM

All crontab jobs from all users
 
hello,

how can root list/edit crontabs of other users?


tnx in adv!

tikit 08-18-2010 08:00 AM

Code:

crontab -l -u username
to list
Code:

crontab -e -u username
to edit

Hope it helps.

MensaWater 08-18-2010 08:03 AM

crontab -l -u <user> # To list crontab for the specified user

crontab -e -u <user> # To edit crontab for the specified user

Also user crontab files are stored in /var/spool/cron. You can see them all there. You can even edit them there with your favorite editor (which of course should be VIM :)) but it using the above commands is probably best unless you're doing global edits.

Note that the hourly, daily, weekly and monthly special crontabs are in a different location (/etc/cron* on RHEL/Fedora/CentOS for example).


All times are GMT -5. The time now is 01:54 AM.