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

John Haxby john.haxby at gmail.com
Thu Jul 7 19:14:24 UTC 2011


On 27 June 2011 15:20, Francis Swasey <Frank.Swasey at uvm.edu> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/rhelv6-list/attachments/20110707/6e90e9cd/attachment.htm>


More information about the rhelv6-list mailing list