On 7/7/11 3:14 PM, John Haxby wrote:
>
>
> On 27 June 2011 15:20, Francis Swasey <[email protected] 
> <mailto:[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?

sudo printenv doesn't show anything that on the face of it is not root's.  And 
root doesn't
have a .mailrc, nor does the /etc/mail.rc file reference SUDO_USER, and moving 
/etc/mail.rc to
a different name doesn't fix anything either.  I'm thinking I have to open a 
bugzilla with RH
on this.

-- 
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)


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
rhelv6-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv6-list

Reply via email to