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

Francis Swasey Frank.Swasey at uvm.edu
Fri Jul 8 14:34:46 UTC 2011


On 7/7/11 3:14 PM, John Haxby wrote:
>
>
> On 27 June 2011 15:20, Francis Swasey <Frank.Swasey at uvm.edu <mailto: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?

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)


-------------- 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/20110708/2e628dfa/attachment.sig>


More information about the rhelv6-list mailing list