[ale] sendmail using real rather than effective user ID

Lightner, Jeff JLightner at water.com
Wed Aug 10 16:39:33 EDT 2011


On a couple of recently loaded servers including a RHEL6 I found that Sendmail is sending emails generated by root processes using my real user ID rather than root’s ID.

These root processes were started from command line after I did “sudo su –“ to become root.   The processes definitely show root as the user running them.   The sudo man page says that when one switches to another user both real and effective user ID are set to the new user which seems to be born out by the “id” command.   However, if I run “who am i” and “whoami” I’m seeing my real user id (the one I was before doing the sudo su) and effective ID.   However, this is also true on my RHEL5 boxes.

Did something change in Sendmail where it is detecting the underlying user somehow?   On my RHEL5 boxes the email goes out just fine as root@ after a sudo su -.





__________________________________________________________________________________________
Jeff Lightner | UNIX/Linux Administrator | DS Waters of America, Inc | 5660 New Northside Drive, Ste 250 | Atlanta, GA 30328
•: (Direct Dial) 678-486-3516 |•: (Cell) 678-772-0018 |  •:jlightner at water.com







Proud partner. Susan G. Komen for the Cure.

 Please consider our environment before printing this e-mail or attachments.
----------------------------------
CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you.
----------------------------------


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.ale.org/pipermail/ale/attachments/20110810/01a2da19/attachment-0001.html 


More information about the Ale mailing list