<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"><<a href="mailto:hanche@math.ntnu.no" target="_blank">hanche@math.ntnu.no</a>></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 <<a href="mailto:allbery.b@gmail.com">allbery.b@gmail.com</a>><br>
Date: 2 February 2016 at 16:06:18<br>
<br>
> On Tue, Feb 2, 2016 at 9:57 AM, Harald Hanche-Olsen<br>
</span><span class="">> wrote:<br>
><br>
> > Well, you did not say in the bug report that you were using sudo, so no<br>
> > wonder it got closed.<br>
><br>
> ? 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>
> > My own systems are too heavily modified at the moment for me to be sure,<br>
> > but I have a file /etc/paths.d/45-macports containing the two lines<br>
> ><br>
> > /opt/local/bin<br>
> > /opt/local/sbin<br>
> ><br>
><br>
> 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>
> I would also suspect a sudoers modification here. The default should retain<br>
> the user'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't make any such modification personally, but it's a work laptop, so I don't know what they've done to the image prior to giving it to me. Maybe I'll get them to stop whatever it is they'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>