Debian Configuration :: Get Cron To Send Messages In First Place Instead Of Root?

Mar 25, 2010

The system crontab (/etc/crontab) uses the same format, except that the username for the command is specified after the time and date fields and before the command.

[code]...

Every hour, I get an e-mail complaining about the first line of the crontab:

[code]...

I get the same complaint from the other entries: It looks to me as if cron, or anacron, is trying to execute the user (root) as a command. Predictably, the shell doesn't like it, so barfs and triggers an e-mail about it. Why is this not doing what the man page says it should do? The 2nd problem I believe is related to exim, not cron. The e-mails I'm getting above are being bounced from my ISP because they are directed to root@myisp.com, rather than my regular e-mail address. When the message bounces, it bounces to my regular e-mail address. In /etc/aliases, I have root: [URL]... and in etc/email-addresses I have root: [URL]... Adding the entry to /etc/email-addresses allowed the bounce to find me because the sender's address is [URL]... but how can I get cron to send these messages to me in the first place, instead of root?

View 11 Replies


ADVERTISEMENT

Ubuntu Servers :: Root Mailbox Filling With Cron Messages?

Feb 3, 2010

I'm getting the following messages sent to my root account mailbox. It appears to be reporting an issue finding ntpdate, however when running the following command:

aptitude show ntpdate | grep State

It shows as installed and any ntpdate commands work with no issues, so I have no idea why this is getting regularly reported?

From root@mydomain.co.uk Wed Feb 03 18:20:01 2010
Return-path: <root@mydomain.co.uk>
Envelope-to: root@mydomain.co.uk
Delivery-date: Wed, 03 Feb 2010 18:20:01 +0000

[Code]....

View 9 Replies View Related

Debian Configuration :: Send Mail From System Commandline As Root User?

Jul 26, 2011

I tried to send mail from my debian system commandline as root user But i did not get the mail in the destination email inbox No errors was shown

View 1 Replies View Related

Slackware :: Send Broadcast Messages From Root?

Dec 24, 2010

i know messages like "the system is going down for reboot now" get sent, and even show up in kde when they're sent. can this be done from a command line?

View 15 Replies View Related

General :: Cron Job Configuration - Log In As The Root User

Apr 15, 2010

I have done these steps. still its not working.

1. Log in as the root user.
2. I have created a file with name "reminder" in /root directory.
3. Create a /etc/cron.daily directory. Add a file called "taxrem", which reads a text file from home directory, so write a command in the "taxrem" : "cat ~/reminder"
4. Add command to /etc/crontab file. Based on the conditions I want, such as : 5 13 * * * root run-parts /etc/cron.daily

There is no entry in the cron.deny file. Still I have not get any response on that scheduled time.

View 1 Replies View Related

Debian :: Proper Place To List Nameserver (Configuration)

Apr 10, 2011

I tried installing gnome-desktop, which wiped out /etc/resolv.conf (and ultimately failed to install). A comment was left in resolv.conf saying "do not edit..". Where is the proper place to list nameservers in debian?

View 2 Replies View Related

Ubuntu :: Finding A Place To Put Scripts To Be Run By Cron?

Jul 22, 2010

I'm not using the anacron folders like cron.daily and such so I'm not just plopping them in there. I'm using cron.d so I have more control over when my scripts are run.I currently have them just sitting in my home directory but this isn't really ideal since they're system-wide scripts . Where in my file system should I put these scripts to be run by cron?

View 1 Replies View Related

CentOS 5 :: Setup A Cron In /var/spool/cron/root

Feb 16, 2010

I have set up a cron in /var/spool/cron/root

*/15 * * * * /usr/bin/phplist.sh

I can see in /var/log/cron that it is running every 15 minutes but it has no effect. It is not doing the commands in the bash script.

If I run /usr/bin/phplist.sh right in the shell it works great.

View 3 Replies View Related

Debian Configuration :: Can't Receive System Messages

Mar 2, 2010

I have a small LAN. I am in the process of installing a Debian Lenny/Squeeze system into the LAN. I want to send and receive system messages using rwalld and wall.I can send a system message from my Debian system to another box using rwall. I can send a local message within the Debian box using wall in a console.I cannot send a local message using wall Konsole in KDE 3.5.x. The KDE Write daemon fails to provide any pop-up window./usr/bin/wall is installed from the bsdutils package and is set to -rwxr-sr-x.

The ktalkd package is installed. The KDE control center shows a configuration option in Internet & Network settings called Local Network Chat.When not in X, mesg is set to y at the console. After starting KDE and I open Konsole, mesg is always set to n. I don't know how this setting toggles. Further, setting mesg to y in Konsole has no effect on getting wall to work.mesg is set to y when I run xterm in KDE. Then wall works within that terminal window. However, the KDE Write daemon does not see the message in xterm.When I send a message from another system to the Debian system using rwall, xterm receives the message but not Konsole or the KDE Write daemon.

View 3 Replies View Related

Debian Configuration :: Vanishing Boot Messages ?

May 4, 2010

An issue that has been hassling me for years since I started using Linux (Debian!) is related to the boot messages that quickly scroll on the video during the boot process. The main hassle is related to the fact that I cannot get a log of those messages. The second hassle is due to the fact that with my brand new netbook (Toshiba NB200) I cannot even stop the scroll and go back along the message stream with SHIFT+PageUpDown to understand what's going on. Of course I know that I can get a log of the boot process with 'dmesg' but I get the feeling that the very first lines show some problem I cannot grab at all.

View 2 Replies View Related

Debian Configuration :: Suspend Mode And Cron Jobs?

Jul 7, 2010

Just curious if this is possible. What I want to do is setup a rsync job to backup my laptop to my personal file server(same LAN), but I want it do do this at 3AM while I'm sleeping. However I always close my laptop lid when I'm done using it which puts the laptop into suspend mode since that's how I configured my power options in gnome. Since I don't want to leave my laptop powered up all the time, I was wondering if it is possible to have a cron job scheduled that will wake the laptop up(out of suspend mode) and run my script/backup job, all without opening the lid of the laptop, and then put it back into suspend mode when it's done. Is this possible, and is it as easy as scheduling a cron job or is there some other scripting/configuration/trickery that I need to do to accomplish this?

Also, my laptop's BIOS has the option to power on at a scheduled time if needed, but I'm not sure if that would work with it being suspended(hibernation is not an option since my entire HD is encrypted with LUKS and I would have to be present to enter the password to boot the system.).

View 7 Replies View Related

Debian Configuration :: Cron Jobs Not Running On XEN DomU

Aug 16, 2010

I have a XEN DomU VM running Lenny and set up using debootstrap. I also have the TimeWentBackwards issue sorted using: [URL]. The problem is that my cron jobs just don't run. I've set up a cron job that simply echoes a date string to a file as a tester but it's not running. I've tried it under the root crontab, in /etc/crontab and set up in /etc/cron.daily. Is there something I'm missing?

View 1 Replies View Related

Debian Configuration :: Can't Get Cron-fired Backup Scripts To Run

Oct 15, 2010

Due to a disk crash I've had to rebuild my Debian Lenny system. For some reason I can't get my cron-fired backup scripts to run. They will run manually.

It looks like crond is not running. If I try to start it, here's what I get:

Pancho:/home/lloyd# /etc/init.d/cron start
Starting periodic command scheduler: crond failed!

MORE INFO:

lloyd@Pancho:~$ /etc/init.d/cron start
Starting periodic command scheduler: crond/etc/init.d/cron: line 54: start-stop-daemon: command not found
failed!

[Code].....

Clearly the problem failure to find start-stop-daemon is not the problem and I'm still in the dark.

View 2 Replies View Related

Debian Configuration :: Disabling Boot-time Messages?

Jul 17, 2011

I'm trying to stop all boot time messages from appearing -- basically I'd like to have a simple blank screen from grub to xdm.

I tried everything -- used the "quiet" option in grub's config, added dmesg -n 1 to rc.local, changed console=ttySx, set kernel.printk in sysctl.conf to 4 1 1 7, and even eradicated rsyslogd altogether... to no avail. I still see all sorts of messages on my screen.

View 1 Replies View Related

Debian Configuration :: Hide Boot Text Messages During The Startup?

Sep 25, 2010

Howto configure /boot/grub/menu.lst from Lenny to hide boot text messages during the startup?

View 14 Replies View Related

Debian Configuration :: Udev Warning Messages At Boot After Upgrade?

Apr 23, 2011

I've done an upgrade from lenny to squeeze.Now, I'm getting a lot of udev warning messages at the boot time.Knows someone howto remove them?

View 6 Replies View Related

Debian Configuration :: AMD64 - Wrong Architecture Errors Messages

Jun 22, 2011

Installed 6.01a from DVD 1 on a system with 4GB ram. Installer installed amd64 version by default. When I try to install amd64.deb files I get "wrong architecture" error messages from the package manager.
root@Laptop-RalphDeb:/home/ralphq# uname -r
2.6.32-5-amd64
root@Laptop-RalphDeb:/home/ralphq# uname -p
unknown
Why I can install amd64 programs and why I get unknown for the uname -p command?

View 2 Replies View Related

Debian Configuration :: Make A Cron Job That Mounts A 2nd Local Hard Drive?

Jul 1, 2011

I am making backups and I need to make a cron job that mounts a 2nd local hard drive.

It is not listed in my fstab file and I mount it manually in nautilus (having to type a password). It is designated as /dev/sdb1 and /media/repo when it is mounted. Can I get cron to mount it and then add the password or do I have to add it to fstab?

View 3 Replies View Related

Debian Configuration :: Cron Sending Emails With Plain Text Password?

Sep 5, 2011

Since we switched our server to Squeeze, I'm receiving emails from the cron about a mysql error (...can't use locks with log tables). But this is not the issue I want to talk about here. The issue is that since the executed command is: /usr/bin/mysqlcheck -uroot -pmypassword --all-databases --check-only-changed --silent which is a command that was automatically added to the cron by the mysql package (I believe), the password is sent in clear text in the email's subject. In my sense, this is a serious security issue (sending root password in email subject...)

I don't know at what level it should be corrected, but it seems to me like it should be corrected in the Debian distrib, shouldn't it ?

And for now, how can I hide the password in the emails I receive ?

View 1 Replies View Related

Debian Configuration :: Shorewall (Shoreline?) Firewall Up And Running, But It's Logging To /var/log/messages?

Jan 29, 2011

I've got a Shorewall (Shoreline?) firewall up and running, but it's logging to /var/log/messages. I'd much rather have it logging to another location e.g. /var/log/firewall but can't find (a clear enough) explanation on how to do this. Apparently, it varies greatly depending on the distro, the kernel, and the version of Shorewall that is running. You'd think it would be something as simple as setting a path in a config file, but apparently not. I'm running a stock Lenny kernel on the firewall machine. It comes with version 4.0.15 of Shorewall.

View 9 Replies View Related

General :: Send SMS Or Place Voice Calls Via Mobile 3g Modem In Linux?

May 26, 2011

I have a ZTE MF112 mobile broadband modem, which comes with Windows drivers and software. This software allows not only connect to Internet, but also send SMS and place calls (as in you dial number in program and when you're connected, sound goes through the sound card). As far as I know, almost any USB mobile modem comes with application to send SMS via its GSM connection.Now the question is - is there any vendor-independent software that runs under Linux and allows you to use your mobile broadband modem to turn your PC into larger mobile phone? I want at least to be able to send and receive SMS using PC + mobile modem.

View 1 Replies View Related

OpenSUSE :: Unwanted Cron Job /var/log/messages Entries?

Apr 6, 2010

I'm setting up a logging script to track utilization on our deployed systems. I'm running it every minute using cron. Each time it runs, I get an entry in /var/log/messages telling me it ran. That is a lot of useless information. Is there a way to prevent the creation of these log entries?

View 1 Replies View Related

Debian Configuration :: Can't Send Email From Command Line Using Mail

Mar 17, 2010

I'm running a desktop-less version of Debian via Sun VirtualBox. The reason I'm doing this is because I don't have enough graphics or RAM power to have a desktop environment running on top of my current desktop; also, I want to learn Linux through the command prompt. I'm running the AMD64 version of Debian; I'm not sure if that's relevant.

My main goal is to be able to email useful files from the virtual Debian to my main computer, so that I can save them for later if I ever decide to do a "real" installation of Debian on this computer. I realize now that there's probably some "easy" way to do this by reading the virtual machine's hard drive, but at this point, my curiosity wants to see this issue resolved. I started off wanting to find a command-line program to send my email with, and one was built-in. The syntax ~$ sudo mail -s "Subject" email@yahoo.com "This is a test email."

C^D
Cc:C^D ~$

is what I found. I tried it, and (unsurprisingly), it failed. I then learned that the mail command calls exim4, or something along those lines, so I needed to configure exim4. Soon thereafter, I learned that Yahoo's SMTP wasn't public, but Google's was. So, I found this web page which described how to configure exim4 to allow for email to be sent to a Gmail account. I made one, and followed the page word-for-word.

I sudo-mailled a test email to my Gmail account, and nothing happened. I waited a bit longer, and still, nothing happened. Finally, I started looking around, and found out about the exim4 logs in /var/log/exim4. In my mainlog, I think that it's telling me that Google denied my connection: <date><time><random numbers and letters> == **********.gmail.com R=send_via_gmail t=gmail_smtp defer (111): Connection refused

So, now, I'm just stuck. I don't know what I did wrong, I checked my exim4.conf.template twice for spelling errors, but I don't think I made any. At this point, I can only hope that someone else has had a similar problem, or knows what I'm doing wrong (or haven't done yet).

View 14 Replies View Related

Ubuntu :: Can't Send Log Messages To Console.

May 16, 2011

after upgrading to 11.04, natty, I have a problem with rsyslogd.

In previous releases I went to:

/etc/rsyslog.d/50-default.conf

and uncommented the lines under comment:

# I like to have messages displayed on the console, but only on a virtual
# console I usually leave idle.

This was redirecting the log messages to a console I could get to via Ctrl-Alt-Fwhatever.

In natty, this no longer works. When I switch to the relevant console I get a blank screen with a blinking cursor.

The file /etc/rsyslog.d/50-default.conf still exists. A new arrival is also 50-default.conf.ucf-dist which, as far as I can tell is a clone and which I have also modified like 50-default.conf.

The file /etc/rsyslog.conf (configuration file for rsyslogd) exists and its last line reads:

$IncludeConfig /etc/rsyslog.d/*.conf

which presumably should force rsyslogd to read 50-default.conf at startup.

Looking at the running processes I can see that rsyslogd runs.

View 4 Replies View Related

Slackware :: Send /var/log/messages To Tty12?

Mar 29, 2010

On RedHat style distroes tty12 show /var/log/messages. How can we implement this feature in Slackware?

View 3 Replies View Related

General :: Keep Getting Messages Saying An Email Send Has Failed

Oct 11, 2009

I keep getting emails from my 404 error handling system on my CMS saying "mail3.xps.idv.tw:25 cannot be found" with no referer. It would appear that someone is trying to use my server to relay spam to Taiwan. How do I check that my server has the right security to stop this happening?

View 1 Replies View Related

Ubuntu :: Win98, WinXP, Send Messages To Each Other?

Jun 7, 2010

Can someone explain to me, or if it's even possible, for a Windoz computer to send a message to Linux (or vice versa) and have the receiver act on that message? For example. I have a DOS program running on a win computer that monitors some hardware connected to the parallel port, and heyu home automation running on the Linux. I would like heyu to turn on a light triggered by an event on win.

Can I send a message, via the OS, from win and run a script on Linux? Can I do that from Linux to Win? Once upon a time there was a messaging system called WinPop (circa Win3.1, and Win95) I assume the functionality still exists even if those archaic programs don't. Currently, I make Windoz create a file on Linux, then the Linux box checks for that file once a minute using cron. This works, but I would prefer a cleaner solution.

View 4 Replies View Related

Ubuntu :: Evolution Mail Won't Send Messages With 10.04

Jun 17, 2010

I had been using Evolution with no issues though until I installed Ubuntu 10.04 after which I could no longer send outgoing messages. I use a hotmail live account with Evolution. I have also just installed Evolution 2.30 from 2.28 to see if that would solve the issue, but it did not.

View 9 Replies View Related

Ubuntu :: Send Text Messages Using Skype ?

Aug 25, 2010

Is there anyway to send txt messages using skype on ubuntu.or is it still in progress.

View 1 Replies View Related

Ubuntu :: Evolution Mail Won't Send Messages 10.04 LTS

Jun 21, 2011

It worked for almost a year with no problems. I suspect a recent update changed something.

Hotmail is my mail service. I've read instructions on how to set up Evolution. I've followed them with no change in results.

I've tried smtp.live.com:587. It was originally set as just smtp.live.com.

SSL is the way it is set but i've tried TLS too. I've seen both suggested.

The authentication is set to "PLAIN" yet when I press send/receive the error message says

"Error while Sending message.

Could not connect to smtp.live.com: Input/output error

POP Before SMTP auth using a non-pop source".

I've tried removing it and reinstalling it. One thing I did notice is that after reinstalling it, the last messages I had tried to send were still showing up. It operated as if I hadn't removed it at all. I did restart the computer between the removal and installation.

On another Evolution mail problem post, a user said that Evolution was a crappy program and people should switch to something else. Do many people think that is true? Does Thunderbird from Firefox work much better?

I'd rather fix it than give up by switching. I really like Mail on Apple computers because I can switch to the "from" tab and highlight numerous messages at one time to move them or delete them. In Evolution I must delete them one at a time.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved