hosted by liquidweb


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

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
  #1  
Old 04-28-2004, 09:23 PM
Devil Inside Devil Inside is offline
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

/etc/crontab

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
  #2  
Old 04-28-2004, 11:40 PM
Devil Inside Devil Inside is offline
Web Hosting Evangelist
 
Join Date: Nov 2003
Posts: 516
got that working - but now cpanel erases all the crons on the server located in

/home/user/

but the ones in

/var/spool/cron/

are still there trying to run.

  #3  
Old 04-29-2004, 02:21 PM
Devil Inside Devil Inside is offline
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
  #4  
Old 04-29-2004, 03:21 PM
BigGorilla BigGorilla is offline
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.
  #5  
Old 04-29-2004, 04:10 PM
Devil Inside Devil Inside is offline
Web Hosting Evangelist
 
Join Date: Nov 2003
Posts: 516
hmm thanks - and good point!

*gives that a shot*

  #6  
Old 04-29-2004, 04:16 PM
Devil Inside Devil Inside is offline
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...

Reply

Related posts from TheWhir.com
Title Type Date Posted
Linux Malware Operation Windigo Infects 25,000 Web Servers Web Hosting News 2014-03-19 11:44:53
ICANN Delegates More than 100 New gTLDs to Root Zone Web Hosting News 2014-01-24 13:41:02
SSHD Rootkit in the Wild Blog 2013-02-22 16:44:08
Mozilla Updates CA Certificate Policy for Software Products Web Hosting News 2013-02-19 12:32:22
CloudLinux Improves Virtualized File System for Shared Web Hosts Web Hosting News 2012-05-30 15:17:05


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
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com 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?