Why does sendmail change the username for the root user (/proc/self/loginuid)?
Issue
-
Why do messages from the "root" user show as a different username?
-
Mail is delivered as the user that had logged in to the system, even after switching to root. This happens on a RHEL 6 system with sendmail configured as the MTA and using mail/mailx as the MUA. The problem does not manifest on a RHEL 5 system, or RHEL 6/postfix/mailx and RHEL 6/sendmail/mutt combination.
-
Sending an email with
sudo su -shows the incorrect user in thefromaddress -
/proc/self/loginuid is configured with a value other than "0" and sendmail changes the root users "from" address
Environment
- Red Hat Enterprise Linux 6
- Sendmail
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
