While logged into the system, I su to root:
From that point, I am generating an email using the mail command:
Even then I have switched to he root user, the recipient received the email and the From: address shows the non-root user that I logged in as before switching to root.
Is there any way around this?
Code:
su -
From that point, I am generating an email using the mail command:
Code:
echo "test" | mail -s "testing" person@example.com
Even then I have switched to he root user, the recipient received the email and the From: address shows the non-root user that I logged in as before switching to root.
Is there any way around this?