<div dir="ltr">I see this with a user encountering a similar error:<div><a href="https://lists.macports.org/pipermail/macports-users/2013-November/034019.html">https://lists.macports.org/pipermail/macports-users/2013-November/034019.html</a><br></div><div><br></div><div>> </div><br>The xinit portfile explicitly requests to be installed as root (it contains the line “install.asroot yes”).</div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, Jul 2, 2025 at 11:26 PM Nick <<a href="mailto:atod101101@gmail.com">atod101101@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">I'll try these options, so far during 'port install xorg' the installation fails requiring root privileges to complete installation of 'xinit.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 2, 2025 at 7:40 PM Dave Allured - NOAA Affiliate via macports-users <<a href="mailto:macports-users@lists.macports.org" target="_blank">macports-users@lists.macports.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Nick, I am glad you figured out before I had to type too much.   ;-)</div><div><br></div><div>Please refer to: <a href="https://guide.macports.org/#installing.macports.source.multiple" target="_blank">https://guide.macports.org/#installing.macports.source.multiple</a> (section 2.2.4) and observe several rules.  In particular it looks like you are still missing <b>--with-applications-dir=XXX</b> and<b>--without-startupitems</b>.</div><div><br></div><div>Also on my controlled Mac where I do not have any admin privileges, I do not use <b>--with-install-user</b> or <b>--with-install-group</b>.  I simply run configure while logged in as the desired user and group.</div><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 2, 2025 at 5:11 PM Nick <<a href="mailto:atod101101@gmail.com" target="_blank">atod101101@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Found the issue, my PATH was pointing to an older macports binary which used different macports.conf!  No help required now.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 2, 2025 at 6:57 PM Nick <<a href="mailto:atod101101@gmail.com" target="_blank">atod101101@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>My proposal here is to create a new user account for macports and development work.  Logged into this account 'mp0' I tried:</div><div><br></div><div>./configure --with-no-root-privileges --prefix=${HOME]/mp-install --with-install-user=mp0 --with-install-group=mp0</div><div>make</div><div>make install</div><div><br></div><div>However, now when I try to install a port I get an error that macports has insufficient privileges to write to the install directory.  I can touch files in this directory without any error.</div><div><br></div><div>Does anyone have suggestions on resolving this?</div><div><br></div><div>I created the account using dscl, not sure if there is something that I should be aware of doing this.</div><div><br></div><div>Thanks!</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 2, 2025 at 5:16 PM Nick <<a href="mailto:atod101101@gmail.com" target="_blank">atod101101@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">What are best practices in sandboxing MacPorts to a non-admin user account and still retaining the ability to use XQuartz?<div><br></div><div>For instance, I would like to invoke all applications as a certain user, without administrative privileges, however at the same time still be able to use XQuartz graphically from my privileged account. I was hoping XQuartz could be installed specific to this non-admin user as well.  Unsure if such isolation is possible.<br></div><div><br></div><div>I'm doing some sandbox testing.  I see a 'macports' user, however in my first installation many of the files in /opt/local are owned by root.  I was hoping to install a specific to a user account for all MacPorts.</div></div>
</blockquote></div>
</blockquote></div>
</blockquote></div></div>
</div>
</div>
</div>
</blockquote></div>
</blockquote></div>