How To Send Root Mail To a User On Redhat/Cent0s 7

0
54
send root mail to user

How To Send Root Mail To a User On Redhat/Cent0s 7

if you want to send the root mail to a existing user, it’s pretty simple to get the mail. But do not do

this in company environment for Security purpose.

let’s do,

first create a user on your server, I have created a abc user on the server to make you understand.

Useradd abc

There is a file called /etc/aliases.

Vim /etc/aliases

go to the bottom and define the user here

Now change it

And save the file and restart the service.

Newaliases

The above command will reload the file.

You’re done

Sponsored

LEAVE A REPLY

Please enter your comment!
Please enter your name here