LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Configuring at (https://www.linuxquestions.org/questions/linux-general-1/configuring-at-818291/)

cmnorton 07-06-2010 11:30 AM

Configuring at
 
Is there a way to configure the at command to send to someone other than root?

MensaWater 07-06-2010 12:50 PM

It is sent to the user that ran the at job.

From the "at" man page on CentOS 5:

Quote:

If at is executed from a su(1) shell, the owner of the login shell will receive the mail.

The superuser may use these commands in any case. For other users, permission to use at is determined by the files /etc/at.allow and /etc/at.deny.

If the file /etc/at.allow exists, only usernames mentioned in it are allowed to use at.
Of course you could make a script that sends an email to the user you want and call that from "at". Or you could alias the root user in your mail application (see /etc/aliases) so that all mail sent to root goes to the desired user instead (this however, wouldn't just be the "at" mail).


All times are GMT -5. The time now is 01:02 PM.