LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-18-2010, 07:53 AM   #1
booyeeka
LQ Newbie
 
Registered: Apr 2010
Posts: 12

Rep: Reputation: 0
All crontab jobs from all users


hello,

how can root list/edit crontabs of other users?


tnx in adv!
 
Old 08-18-2010, 08:00 AM   #2
tikit
Member
 
Registered: Feb 2008
Posts: 84

Rep: Reputation: 16
Code:
crontab -l -u username
to list
Code:
crontab -e -u username
to edit

Hope it helps.
 
1 members found this post helpful.
Old 08-18-2010, 08:03 AM   #3
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,713
Blog Entries: 14

Rep: Reputation: 1038Reputation: 1038Reputation: 1038Reputation: 1038Reputation: 1038Reputation: 1038Reputation: 1038Reputation: 1038
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).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I tell if crontab jobs are axecuting ? juanb Linux - General 4 01-27-2011 09:08 AM
saving crontab jobs wolfsar Linux - Software 4 07-15-2009 07:44 PM
Better understanding of Cron Jobs/Crontab?? 200mg Linux - Newbie 3 05-15-2009 09:57 AM
Crontab not running jobs ncracraf Linux - Newbie 6 09-02-2006 02:44 PM
crontab jobs aren't running mdm_linux Linux - General 4 05-30-2005 12:27 PM


All times are GMT -5. The time now is 09:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration