[rhelv6-list] mailx using real uid instead of effective uid

Francis Swasey Frank.Swasey at uvm.edu
Mon Jun 27 14:20:49 UTC 2011


Has anyone figured out a way to get mailx in RHEL6 to use the effective uid instead of the real
uid (other than modifying the scripts that are being run via sudo to include the "-r root"
parameter on the mailx command)?

In previous versions of RHEL (RHEL 5.6 for example), using sudo to run a script (as root) which
internally sends mail would properly mark the mail as coming from root, in RHEL6, the mail is
being sent as coming from the account which ran sudo instead of from root.

I haven't found any settings in /etc/mail.rc that are making this change, so I assume it is
either something new in mailx, sudo, bash, or the kernel in RHEL6.

Thanks,

-- 
Frank Swasey                    | http://www.uvm.edu/~fcs
Sr Systems Administrator        | Always remember: You are UNIQUE,
University of Vermont           |    just like everyone else.
  "I am not young enough to know everything." - Oscar Wilde (1854-1900)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 905 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/rhelv6-list/attachments/20110627/9ac320a9/attachment.sig>


More information about the rhelv6-list mailing list