LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-27-2007, 07:14 AM   #1
Raakh
Member
 
Registered: May 2007
Posts: 128

Rep: Reputation: 15
Cron Daemon (root@servername.com)


OS=RHE

I am receiving lot of mail for the following message from my dedicated server. Why?

Thanks & best regards

Cron <drweb@server> /opt/drweb/update.pl‏
From: Cron Daemon (root@servername.com)
Sent: Sunday, December 23, 2007 4:20:50 PM
To: drweb@servername.com

/bin/sh: /opt/drweb/update.pl: Permission denied
 
Old 12-27-2007, 08:29 AM   #2
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,444
Blog Entries: 1

Rep: Reputation: 66
Any errors and output in cron jobs are e-mailed to the owner of the cron job.

There is a cron job that is trying to execute /opt/drweb/update.pl and this file does not have an execution permission.
Check the permissions of /opt/drweb/update.pl.

PS: Do you know what /opt/drweb/update.pl is supposed to do, don't you ? If you don't know what is this program, is better to remove the associated cron job and figure out how and who is responsible for it.
 
Old 12-27-2007, 08:37 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
Check the update.pl script. One thing that could case an access denied error is if the server is using SELinux and doesn't allow DrWeb access. It could be that the port that DrWeb uses to get its virus definition updates is closed as well. The e-mail doesn't tell you but the script may also produce a log with more details.
Some programs will have a setting which controls the verbosity of the email warning it sends.

Last edited by jschiwal; 12-27-2007 at 08:39 AM.
 
Old 12-27-2007, 10:30 AM   #4
Raakh
Member
 
Registered: May 2007
Posts: 128

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by marozsas View Post
Any errors and output in cron jobs are e-mailed to the owner of the cron job.

There is a cron job that is trying to execute /opt/drweb/update.pl and this file does not have an execution permission.
Check the permissions of /opt/drweb/update.pl.

PS: Do you know what /opt/drweb/update.pl is supposed to do, don't you ? If you don't know what is this program, is better to remove the associated cron job and figure out how and who is responsible for it.
I don't know. How can i remove the associated cron job and figure out who is responsible?

thanks & best regards
 
Old 12-27-2007, 01:23 PM   #5
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,444
Blog Entries: 1

Rep: Reputation: 66
Quote:
Originally Posted by Raakh View Post
I don't know. How can i remove the associated cron job and figure out who is responsible?

thanks & best regards
There are 2 kinds of cron jobs: the one that run at specific dates&times and jobs that run when the load is low.

To check the first kind, as root, "crontab -l -u username". (or simply check the files on /var/spool/cron/tabs)

To check the second kind, as root, check every file on the following directories: "/etc/cron.d /etc/cron.daily /etc/cron.hourly /etc/cron.monthly /etc/cron.weekly".

In one of theses files you will find a reference for /opt/drweb/update.pl

shortcut:
Code:
# grep -RHn /opt/drweb/update.pl /etc/cron.* /var/spool/cron/tabs

PS: I am going to home now and I will access LQ only in Jan 04 2008. Sorry to not asssist you until them.

Last edited by marozsas; 12-27-2007 at 01:24 PM.
 
Old 12-28-2007, 08:41 PM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
If you google for DrWeb you will find that it is an antivirus scanner. This may be a cronjob to update its definitions.
http://solutions.drweb.com/business/fileserv/unix/


You could examine the perl script yourself to verify this. Also check the execution permissions on the file.
 
Old 12-29-2007, 11:16 AM   #7
Raakh
Member
 
Registered: May 2007
Posts: 128

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jschiwal View Post
If you google for DrWeb you will find that it is an antivirus scanner. This may be a cronjob to update its definitions.
http://solutions.drweb.com/business/fileserv/unix/


You could examine the perl script yourself to verify this. Also check the execution permissions on the file.
You are right

thanks for your cooperation

Appreciated!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 8 selinux blocks root cron but not user cron Infinity Fedora 7 11-29-2007 08:21 AM
cron daemon and email fakie_flip Programming 2 11-28-2007 04:25 AM
uClinux cron/daemon help Pyrofeed Linux - Newbie 1 02-25-2006 06:22 AM
How does cron daemon work? smart_sagittari Linux - General 5 01-26-2006 08:40 AM
Cron Daemon error? Help please plisken Linux - General 0 08-27-2003 05:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration