Is selinux active? It always keeps the real ID of the user intact even through multiple layers of su.<br><br><div class="gmail_quote">On Wed, Aug 10, 2011 at 4:39 PM, Lightner, Jeff <span dir="ltr"><<a href="mailto:JLightner@water.com" target="_blank">JLightner@water.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u><u></u><u></u><u></u><u></u><u></u><u></u>
<div link="blue" vlink="purple" lang="EN-US">
<p></p>
<div>
<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;font-family:Arial">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.<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;font-family:Arial">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.<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;font-family:Arial">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
-.<u></u><u></u></span></font></p>
<p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;font-family:Arial"><u></u> <u></u></span></font></p>
<p class="MsoNormal"><b><font color="red" face="Tahoma" size="2"><span style="font-size:10.0pt;font-family:Tahoma;color:red;font-weight:bold"></span></font></b></p>
</div>
<p></p>
<p> </p>
<p> </p>
<p></p>
<div>
<p class="MsoNormal"><b><font color="red" face="Tahoma" size="2"><span style="font-size:10.0pt;font-family:Tahoma;color:red;font-weight:bold">__________________________________________________________________________________________</span></font></b><u></u><u></u><u></u><u></u></p>
<p class="MsoNormal"><b><font face="Tahoma" size="2"><span style="font-size:10.0pt;font-family:Tahoma;font-weight:bold"><u></u>Jeff
Lightner<u></u> </span></font></b><font face="Tahoma" size="2"><span style="font-size:10.0pt;font-family:Tahoma">|
<b><span style="font-weight:bold">UNIX/Linux Administrator</span></b></span></font><b><b><font face="Tahoma"><span style="font-family:Tahoma">
</span></font></b></b><font face="Tahoma" size="2"><span style="font-size:10.0pt;font-family:Tahoma">|
</span></font><b><b><font face="Tahoma"><span style="font-family:Tahoma">DS Waters of America, Inc
</span></font></b></b><font face="Tahoma" size="2"><span style="font-size:10.0pt;font-family:Tahoma">|
<u></u><u></u><u></u><u></u><u></u><u></u>5660
New Northside Drive, Ste 250<u></u><u></u><u></u><u></u><u></u><u></u> |
<u></u><u></u><u></u><u></u><u></u><u></u>Atlanta<u></u><u></u><u></u><u></u><u></u>,
<u></u><u></u><u></u>GA<u></u><u></u><u></u>
<u></u><u></u><u></u>30328<u></u><u></u><u></u><u></u><b><span style="font-weight:bold">
</span></b></span></font><font size="2"><span style="font-size:10.0pt"><br>
</span></font><font color="maroon" face="Wingdings" size="2"><span style="font-size:10.0pt;font-family:Wingdings;color:maroon">(</span></font><font face="Tahoma" size="2"><span style="font-size:10.0pt;font-family:Tahoma">:</span></font><font face="Tms Rmn" size="2"><span style="font-size:10.0pt;font-family:"Tms Rmn"">
</span></font><font face="Tahoma" size="2"><span style="font-size:10.0pt;font-family:Tahoma">(Direct Dial)</span></font><font face="Tms Rmn" size="2"><span style="font-size:10.0pt;font-family:"Tms Rmn"">
</span></font><font face="Tahoma" size="2"><span style="font-size:10.0pt;font-family:Tahoma"><a href="tel:678-486-3516" value="+16784863516" target="_blank">678-486-3516</a></span></font><font face="Tms Rmn" size="2"><span style="font-size:10.0pt;font-family:"Tms Rmn""> |</span></font><font color="maroon" face="Wingdings" size="2"><span style="font-size:10.0pt;font-family:Wingdings;color:maroon">(</span></font><font face="Tahoma" size="2"><span style="font-size:10.0pt;font-family:Tahoma">:</span></font><font face="Tms Rmn" size="2"><span style="font-size:10.0pt;font-family:"Tms Rmn"">
</span></font><font face="Tahoma" size="2"><span style="font-size:10.0pt;font-family:Tahoma">(Cell)</span></font><font face="Tms Rmn" size="2"><span style="font-size:10.0pt;font-family:"Tms Rmn"">
</span></font><font face="Tahoma" size="2"><span style="font-size:10.0pt;font-family:Tahoma"><a href="tel:678-772-0018" value="+16787720018" target="_blank">678-772-0018</a>
</span></font><font face="Tms Rmn" size="2"><span style="font-size:10.0pt;font-family:"Tms Rmn"">|
</span></font><font color="maroon" face="Wingdings" size="2"><span style="font-size:10.0pt;font-family:Wingdings;color:maroon">*</span></font><font color="maroon" face="Tms Rmn" size="2"><span style="font-size:10.0pt;font-family:"Tms Rmn";color:maroon">:</span></font><font color="maroon" face="Tahoma" size="2"><span style="font-size:10.0pt;font-family:Tahoma;color:maroon"><a href="mailto:jlightner@water.com" target="_blank">jlightner@water.com</a></span><u></u><u></u></font><u></u><u></u></p>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size:12.0pt"><u></u> <u></u></span></font></p>
</div>
<u></u><u></u><u></u><u></u>
<p></p>
<div></div>
<p></p>
<p> </p>
<p> </p>
<p> </p>
<p style="margin:0in 0in 0pt" class="MsoNormal">
<span style="font-family:Arial;font-size:10pt">Proud partner. Susan G. Komen for the Cure.</span></p>
<p style="margin:0in 0in 0pt" class="MsoNormal">
<span style="font-family:Arial;font-size:10pt"><u></u><u></u></span> </p>
<p style="margin:0in 0in 0pt" class="MsoNormal"> <i><span style="font-family:Arial;color:green;font-size:7.5pt">Please consider our environment before printing this e-mail or attachments.</span></i>
</p>
<p style="margin:0in 0in 0pt" class="MsoNormal"><span style="font-family:Arial;font-size:10pt">----------------------------------<br>
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.<br>
----------------------------------</span><span style="font-family:'Courier New';font-size:9pt"><u></u><u></u></span></p>
<p> </p>
</div>
<br>_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org" target="_blank">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>-- <br>James P. Kinney III<br><br>As long as the general population is passive, apathetic, diverted to
consumerism or hatred of the vulnerable, then the powerful can do as
they please, and those who survive will be left to contemplate the
outcome.<br>- <i><i><i><i>2011 Noam Chomsky<br><br><a href="http://heretothereideas.blogspot.com/" target="_blank">http://heretothereideas.blogspot.com/</a><br></i></i></i></i><br>