<div dir="ltr">It's because the stdout redirect is executing as your user ID, and this has nothing to do with MacPorts<div><br></div><div>The solution is to first do:</div><div><br></div><div>sudo su - </div><div><br></div><div>This gets you to a full root shell.  Then you do the command you said.</div><div><br></div><div>+ David Herron</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 7, 2018 at 9:20 AM, Murray Eisenberg <span dir="ltr"><<a href="mailto:murrayeisenberg@gmail.com" target="_blank">murrayeisenberg@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">I’m trying to install the port of OpenModelica. The instructions at <a href="https://www.openmodelica.org/download/download-mac" target="_blank">https://www.openmodelica.<wbr>org/download/download-mac</a> <wbr>give, as first step:<div><br></div><div>    <span style="font-family:Menlo;font-size:12px;background-color:rgb(255,255,255)">echo <a>rsync://build-openmodelica.<wbr>org/macports/</a> >> /opt/local/etc/macports/<wbr>sources.conf</span></div><div><br></div><div>But even with sudo, I’m getting a "Permission denied" error. </div><div><br></div><div>How to fix this?<div><br><div>
---<br>Murray Eisenberg<span class="m_2271433717457139461Apple-tab-span" style="white-space:pre-wrap">                  </span><a href="mailto:murrayeisenberg@gmail.com" target="_blank">murrayeisenberg@gmail.com</a><br><a href="https://maps.google.com/?q=503+King+Farm+Blvd+%23101&entry=gmail&source=g">503 King Farm Blvd #101</a><span class="m_2271433717457139461Apple-tab-span" style="white-space:pre-wrap">   </span>Home (240)-246-7240<br>Rockville, MD 20850-6667<span class="m_2271433717457139461Apple-tab-span" style="white-space:pre-wrap">     </span>Mobile (413)-427-5334<br><br>

</div>

<br></div></div></div></blockquote></div><br></div>