LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 10-12-2004, 10:29 AM   #1
glenn69
Member
 
Registered: Jul 2003
Location: Chicagoland
Distribution: ArchLinux
Posts: 261

Rep: Reputation: 32
Question Whats the difference between all the crontabs (system, root, users) ?


I have read about cron. I see that there is a system crontab in /etc/crontab. Then there are user crontabs for each user and root.

I have accessed each of these for editing, but I am a bit confused as to which one I should be using.

I want to automate our office server's backups for once every weekday evening. Is it ok to put that in system crontab, or should I be using a user crontab?

Also, in the system crontab, i see that there are these:

/etc/crontab file lists the times to run various cron directories with any files.
/etc/cron.hourly directory listing of hourly files to be run
/etc/cron.daily directory listing of daily files to be run
/etc/cron.weekly directory listing of weekly files to be run
/etc/cron.monthly directory listing of monthly files to be run
/etc/cron.allow file list of users allowed to use crontab (not always present)
/etc/cron.deny file list of users denied to use crontab (not always present)

Why would I use a daily crontab vs. simply setting up the cron entry to run every day 10 11 * * * blah blah?

Thanks
 
Old 10-12-2004, 06:45 PM   #2
evilmrhenry
Member
 
Registered: Oct 2003
Distribution: Knoppix
Posts: 103

Rep: Reputation: 15
Quote:
Why would I use a daily crontab vs. simply setting up the cron entry to run every day 10 11 * * * blah blah?
Basically, dropping a script into a directory is usually easier than editing a text file. Either way will work, though editing the crontab gives better control.

Quote:
I have accessed each of these for editing, but I am a bit confused as to which one I should be using.

I want to automate our office server's backups for once every weekday evening. Is it ok to put that in system crontab, or should I be using a user crontab?
The major difference here is permissions. User cron jobs will run with the permissions of that user, system cron jobs (I think) run with the permissions of root.
 
Old 10-12-2004, 07:41 PM   #3
qUox
LQ Newbie
 
Registered: Oct 2004
Posts: 7

Rep: Reputation: 0
thx that helped me
 
  


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
what is the difference between real root system and normal root system zameer_india Linux - Newbie 17 07-04-2012 12:18 PM
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 04:08 PM
whats the difference?? its_toby General 4 10-11-2005 10:35 PM
Whats the difference... johnsonb125 Linux - Newbie 3 05-19-2004 11:09 PM
whats the difference? sixth_sense Linux - Security 1 04-29-2004 06:28 PM


All times are GMT -5. The time now is 06:23 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration