<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 2, 2016 at 7:22 AM, Harald Hanche-Olsen <span dir="ltr">&lt;<a href="mailto:hanche@math.ntnu.no" target="_blank">hanche@math.ntnu.no</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">-----Original Message-----<br>
From: Brandon Allbery &lt;<a href="mailto:allbery.b@gmail.com">allbery.b@gmail.com</a>&gt;<br>
Date: 2 February 2016 at 16:06:18<br>
<br>
&gt; On Tue, Feb 2, 2016 at 9:57 AM, Harald Hanche-Olsen<br>
</span><span class="">&gt; wrote:<br>
&gt;<br>
&gt; &gt; Well, you did not say in the bug report that you were using sudo, so no<br>
&gt; &gt; wonder it got closed.<br>
&gt;<br>
&gt; ? sudo is the recommended way to do this.<br>
<br>
</span>Yes, but the way the bug report was phrased, it was very easy to suspect that either a root shell had been run using “sudo -i”, or perhaps even by enabling the root account and logging in as root – which is definitely not recommended, but I have seen this suggestion in the wild – though not recently.<br>
<span class=""><br>
&gt; &gt; My own systems are too heavily modified at the moment for me to be sure,<br>
&gt; &gt; but I have a file /etc/paths.d/45-macports containing the two lines<br>
&gt; &gt;<br>
&gt; &gt; /opt/local/bin<br>
&gt; &gt; /opt/local/sbin<br>
&gt; &gt;<br>
&gt;<br>
&gt; This is not standard.<br>
<br>
</span>Okay, now I am curious. How does the macports installation manipulate the path? As far as I know, the above method is standard, even though it may not be what macports does. (If I installed that file there, I must have done it because it didn’t work otherwise.)<br>
<span class=""><br>
&gt; I would also suspect a sudoers modification here. The default should retain<br>
&gt; the user&#39;s PATH,<br>
<br>
</span>That’s what I am finding too, after some experimentation. Even the sudo man page agrees, though only if you read it really carefully.<br></blockquote><div><br></div><div>Entirely possible. I didn&#39;t make any such modification personally, but it&#39;s a work laptop, so I don&#39;t know what they&#39;ve done to the image prior to giving it to me. Maybe I&#39;ll get them to stop whatever it is they&#39;re doing to sudoers. Thanks, Brandon and Harald, this makes a lot more sense than there being an installer bug :)</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
– Harald<br>
<br>
</font></span></blockquote></div><br></div></div>