On 27 June 2011 15:20, Francis Swasey <[email protected]> wrote: > 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)? > > sudo sets the real and effective UIDs to the same thing.
I suspect (but can't confirm at the moment) that either sudo is letting through an environment variable that is setting the originator . Does "sudo printenv" list anything not obviously belonging to root? Does root's .mailrc try to do something with SUDO_USER? jch
_______________________________________________ rhelv6-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/rhelv6-list
