[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Empty crontab



On Sat, Mar 10, 2007 at 02:57:01PM +0200, Andrei Popescu wrote:
> Marko Randjelovic <marel@sbb.co.yu> wrote:
> 
> > > If I am not mistaken crontab -e edits root's crontab, however,
> > > according to me, you are looking for /etc/crontab, aren't you ?
> > >
> > >   
> > I thaught root's crontab is /etc/crontab. Thanks. Which command then
> > to run to edit this file (sometime ago I read it is not recommended
> > to edit it directly)?
> 
> From 'man crontab'
> 
> "Each user can have their own crontab, and though these are files
> in /var/spool/cron/crontabs, they are  not intended to be edited
> directly."
> 
> No mention about /etc/crontab. Someone correct me if I'm wrong, but
> AFAIU you are safe to edit it.


From 'man /etc/crontab' :

#  /etc/crontab:  system‐wide  crontab 
# Unlike any other crontab you don’t have to run the ‘crontab’ 
# command to install the  new version when you edit this file 
# and files in /etc/cron.d. These files also have  username  fields,  
#  that  none  of  the  other crontabs do.

It seems you can do it !

-- 
Franck Joncourt
http://www.debian.org
http://smhteam.info/wiki/
GPG server : pgpkeys.mit.edu
Fingerprint : C10E D1D0 EF70 0A2A CACF  9A3C C490 534E 75C0 89FE

Attachment: signature.asc
Description: Digital signature


Reply to: