<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Sep 4, 2015 at 10:06 PM, Gideon Simpson <span dir="ltr">&lt;<a href="mailto:gideon.simpson@gmail.com" target="_blank">gideon.simpson@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="margin:0px">gideon@gs_air:swig$ sudo port install</div><div style="margin:0px">Password:</div><div style="margin:0px">Error: Unable to execute port: Could not open file: /Users/gideon/Downloads/ports/swig/Portfile</div><span class="HOEnZb"><font color="#888888"><div></div></font></span></blockquote></div><br>Make sure that the user &quot;macports&quot; can get to that directory. This usually means &quot;chmod o+x ~&quot; to grant search (only) privilege so that it can traverse ~ to get to the swig subdirectory. (If you are feeling paranoid, you can use &quot;chmod -e&quot; to limit that access to the &quot;macports&quot; user instead of all users; see `man 1 chmod` for how OS X ACLs work.) Likewise ensure that the swig directory grants access to the &quot;macports&quot; user and that that user can read the Portfile and patch.</div><div class="gmail_extra"><br></div><div class="gmail_extra">MacPorts does not perform all operations as root, but drops to the unprivileged &quot;macports&quot; user for most things.<br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div></div>
</div></div>