Re: Changing Root E-Mail address

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Wed, 22 Dec 2010, Les Mikesell wrote:

*snipped*

> And, there may be other interesting/critical mail coming to root.
>

Good point.

I always have root's email sent to my own user account.

That's one of the things my ALI scripts sets up for me.

echo
echo "Processing /etc/aliases config file"
echo

# Backup the newly installed aliases configuration file.
cp -vpR $ETC_DIR/aliases $ETC_DIR/aliases$ORG_SUFX
echo

# Use sed to edit the new aliases file and change
# who should get root's email.

echo "Setting up who gets root's email"

sed -i s/#root:.*marc/'root:    keith'/ $2/aliases

echo
cat $ETC_DIR/aliases
echo

Kind Regards,

Keith Roberts

-- 
In theory, theory and practice are the same;
in practice they are not.

This email was sent from my laptop with Centos 5.5
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux