Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10577 - bad default /etc/crontab
Summary: bad default /etc/crontab
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Bugzilla (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Maik Schreiber
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-11 05:45 UTC by Jonas Pålsson
Modified: 2011-10-30 23:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas Pålsson 2002-11-11 05:45:26 UTC
In gentoo 1.4 rc1, which I just installed, the default /etc/crontab that comes 
with the dist does _not_ work with vcron (I haven't tried with the others). 
With vcron you should not specify the user it should run as in the crontab 
file which is exactly what you have done. It is run as the user who owns the 
crontab job. This is very annoying because in the default install i get a mail 
every 15th minute saying that /bin/sh can't find the command "root". 
Line as it is now:
*/15 * * * *   root    /path/to/command/to/run

As it should be:
*/15 * * * *   /path/to/command/to/run
Comment 1 Brad Cowan (RETIRED) gentoo-dev 2002-11-11 08:40:18 UTC
had the same problem, but don't really have any cron jobs so I just got rid of
cron :)
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2002-11-11 14:01:36 UTC
vixie cron support a /etc/crontab for system wide entries.  If you leave it there
and let vixie cron use that, you need to add a third field in the middle, this
being the user that the job should run as.

If you however do something like:

 # crontab /etc/crontab

then you have to remove the username ...

From 'man 5 crontab' :

--------------
Each line has  five  time and  date  fields,  followed  by  a  user  name
if this is the system crontab file, followed by a command.
--------------

This bug is thus invalid.
Comment 3 John Davis (zhen) (RETIRED) gentoo-dev 2002-12-15 22:16:37 UTC
owner = blizzy
Comment 4 John Davis (zhen) (RETIRED) gentoo-dev 2002-12-15 22:16:54 UTC
owner = blizzy