Re: cron "BAD FILE MODE"

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

 



On Sun, Feb 06, 2005 at 07:22:26PM +0000, Timothy Murphy wrote:
> ====================================
> Feb  6 16:06:51 martha crond[6266]: (*system*) BAD FILE MODE
> (/etc/cron.d/fetchmail.cron)

"File mode" is another word for permissions.

> ====================================
> in /var/log/cron when I add what seems 
> a perfectly good 1-line file
> ====================================
> 5,15,25,35,45,55 * * * * tim /usr/bin/fetchmail alfred
> ====================================
> as /etc/cron.d/fetchmail.cron and restart crond.

If you do an ls -l on this file, what are the permissions? My guess is that
you've left it world-writable, but it's possible that cron is being really
picky and wants it to not group-writable either. In any case, do:

  chmod 0644 /etc/cron.d/fetchmail.cron 

and you should be all set.



-- 
Matthew Miller            mattdm@xxxxxxxxxx        <http://www.mattdm.org/>
-->  Fedora Users & Developers Conference, hosted by Boston University  <--
February 18th, 2005                       <http://fedoraproject.org/fudcon/>  


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux