Cron Deamon Problem
Hi everyone, I'm a real newb, and could do with a little help.
I have a linux web server (a vps) and everything is running just fine, I don't tend to mess about with things too much. anyway. A couple of days ago my administrator email account has started recieving emails like this (every 20 minutes!) subject: Cron <smmsp@mydomain> test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp message mkdir: cannot create directory '/var/run/sendmail': Permission denied Ok, I've had a good search around and I think I've been breached. I cannot find any scheduled tasks anywhere (I certainly havn't set any up) and I cannot find the cron script to remove it. Any help would be really really good as my email goes ping every 20 minutes with the same email! of course, I've changed all of my access passwords and updated the server software, just in case I have been breached. Thanks in advance |
Hi and welcome to LinuxQuestions! :)
I don't think your system has been breached: have you looked for a crontab script in /etc/cron.d/? Is there a file named "sendmail" inside it? Please, provide as many details as possible about your issue (Linux OS, sendmail version and so on). If it turns out that it's really a security issue, take in mind that you can report your own post and ask a moderator to move it into the Linux - Security forum (anyway, I think Linux - Server could be a more suitable place). |
Yes there is.
Most of it is commented out (I assume that starting a line with a # comments it) the only bit that isn't commented out is, #------------------------------------------------------------------------------ # Every so often, give sendmail a chance to run the MSP queues. # */20 * * * * smmsp test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp # #------------------------------------------------------------------------------ # Every so often, give sendmail a chance to run the MTA queues. # Will also run MSP queues if enabled # #*/10 * * * * root test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-mta # #------------------------------------------------------------------------------ which I guess is the instruction for it to send something every 20 minutes. The only other line that's not commented is further up in the file, MAILTO=root that's it really... I can't see why this would suddenly cause a problem out of the blue, considering that I've not changed any folder permissions, or adjusted this file. In the meantime I'll try commenting out that */20 line for now and see if that's a quick fix, but I am intruiged as to why it just started happening. Thanks for your help! |
Well, for those of you that have a similar problem, commenting out that line did stop the emails from coming in...
Still a mystery as to why it all began though! many thanks to colucix for his pointing me in the right direction |
I think the script is fine the way it was. The problem is with the permissions of /var/run/sendmail
Could you post the output of Code:
$ ls -l /var/run/sendmail |
Output of ls -l /var/run/sendmail permissions for Sendmail program
Quote:
Code:
$ ls -l /var/run/sendmail Code:
$ ls -l /var/run |
All times are GMT -5. The time now is 07:25 AM. |