hosted by liquidweb

Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Root Crons not workin...

Forum Jump

Root Crons not workin...

Reply Post New Thread In Hosting Security and Technology Subscription
Send news tip View All Posts Thread Tools Search this Thread Display Modes
Web Hosting Evangelist
Join Date: Nov 2003
Posts: 516

Root Crons not workin...

I have this cron:

*/15 * * * * chmod 644 /var/log/exim_mainlog /dev/null

in the


But it doesn't work. I did try a few variations that I don't recall offhand. Anyone know why it might not work?

It's for the Mail-Watch system. Whenever there's a log rotate or /scripts/mailperm is run the chmod is set back to its default and Mail-Watch can't read it.

Any help is greatly appreciated, thank you.

Sponsored Links
Web Hosting Evangelist
Join Date: Nov 2003
Posts: 516
got that working - but now cpanel erases all the crons on the server located in


but the ones in


are still there trying to run.

Web Hosting Evangelist
Join Date: Nov 2003
Posts: 516
So in short, I'm retarded.

I edited the /etc/crontab manually via pico -w which I noe hear is a bad thing. *eep!*

So anyhow - it screwed my /dev/null so that other users can't write to it. Thus breaking their crons that use /dev/null

When I do this - I get....

ls -l /dev/null
crw-r--r-- 1 root root 1, 3 Sep 15 2003 /dev/null

Could someone please let me know if that's the problem?
Thank you much!

Sponsored Links
Aspiring Evangelist
Join Date: Mar 2004
Location: Chicago, IL
Posts: 384
Everyone should have write access to /dev/null.

crw-rw-rw- 1 root root 1, 3 Apr 11 2002 /dev/null

Try "chmod 666 /dev/null".

Then fix this line:

chmod 644 /var/log/exim_mainlog /dev/null

shoud be

chmod 644 /var/log/exim_mainlog > /dev/null

Although chmod won't output any info anyway unless it fails, so you may want to drop the /dev/null entirely.

Last edited by BigGorilla; 04-29-2004 at 03:25 PM.
Web Hosting Evangelist
Join Date: Nov 2003
Posts: 516
hmm thanks - and good point!

*gives that a shot*

Web Hosting Evangelist
Join Date: Nov 2003
Posts: 516
And it worked.

Thank you very much BigGorilla! I should have realised that but I just don't know much about crons and used others as examples...


Related posts from
Title Type Date Posted
GlowHost Listing 2015-01-30 21:01:29
Website for DNS Organization ISC Down After Malware Discovery Web Hosting News 2014-12-30 12:13:20
Linux Malware Operation Windigo Infects 25,000 Web Servers Web Hosting News 2014-03-19 11:44:53
Donuts Rolls Out Seven New gTLDs to Public Web Hosting News 2014-01-29 11:43:03
ICANN Delegates More than 100 New gTLDs to Root Zone Web Hosting News 2014-01-24 13:41:02

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Log in with your username and password

Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Web Hosting News:
WHT Membership
WHT Membership



Welcome to

Create your username to jump into the discussion! is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.

(4 digit year)

Already a member?