<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Should I be able to see a user “macports” in System Preferences &gt; Users &amp; Groups?<div class=""><br class=""></div><div class="">I see no such.&nbsp;</div><div class=""><br class=""></div><div class="">However, under /Users there is a directory “macports” owned by macports:staff. It has with subdirectories Desktop, Documents, …Sites , which are all owned by macports:staff, as is that directory “macports” itself.&nbsp;</div><div class=""><br class=""></div><div class="">Each of those subdirectories contains a single file, “.localized”.</div><div class=""><br class=""></div><div class="">I ask the question because of an issue that arose when I migrated everything fom an old Mac to a new one via a Time Machine backup. Migration Assistant said there was a problem with user macports.</div><div class=""><div class=""><br class=""></div><div class="">After migration, there was no directory /opt/local/var/macports, yet the port command seems to work OK, including for upgrading outdated ports.</div></div><div class=""><br class=""></div><div class="">To create the missing &nbsp;/opt/local/var/macports, I ran:</div><div class=""><br class=""></div><div class=""><pre class="wiki" style="background-color: rgb(247, 247, 247); border: 1px solid rgb(215, 215, 215); margin-right: 1.75em; margin-left: 1.75em; padding: 0.25em; overflow: auto; font-size: 13px;">% sudo mkdir -p /opt/local/var/macports/home
% sudo chown macports:macports /opt/local/var/macports/home</pre><div class=""><br class=""></div><div class="">After that I get:</div></div><div class=""><br class=""></div><div class="">&nbsp; &nbsp; $&nbsp;<span style="font-family: Menlo; font-size: 12px;" class="">id macports</span></div><div class=""><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class="">uid=504(macports) gid=501(macports) groups=501(macports),12(everyone),61(localaccounts),701(com.apple.sharepoint.group.1),702(com.apple.sharepoint.group.2),100(_lpoperator)</div></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class="">&nbsp; $ echo -macports</div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class="">-macports</div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class="">[NOTE: not pointing to anything]</div><div class=""><br class=""></div><div class="">&nbsp; &nbsp; $&nbsp;<span style="font-family: Menlo; font-size: 12px;" class="">ls -al -macports</span></div><div class=""><span style="font-family: Menlo; font-size: 12px;" class="">[ lists almost everything in _my_ home directory! ]</span></div><div class=""><br class=""></div><div class="">&nbsp; &nbsp;<font size="2" class=""><span style="background-color: rgb(247, 247, 247);" class="">$&nbsp;</span></font><span style="font-family: Menlo; font-size: 12px;" class="">sudo ls -Rl /opt/local/var/macports/home</span></div><div class=""><span style="font-family: Menlo; font-size: 12px;" class="">total 0</span></div><div class=""><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class="">drwxr-xr-x&nbsp; 3 root&nbsp; admin&nbsp; 102 Dec 10 16:01 Library</div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo; min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class="">/opt/local/var/macports/home/Library:</div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class="">total 0</div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class="">drwxr-xr-x&nbsp; 2 root&nbsp; admin&nbsp; 68 Dec 10 17:18 Preferences</div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo; min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-size: 12px; line-height: normal; font-family: Menlo;" class="">/opt/local/var/macports/home/Library/Preferences:</div></div><div class="">&nbsp; &nbsp;&nbsp;</div><div class=""><br class=""></div><div class="">Is there something that needs to be fixed and, if so, how?</div><div class=""><br class=""></div><div class="">(I sure hope I don’t have to follow the Macports migration procedure again, to reinstall all my ports, as I had just done that on the old Mac when I upgraded from Yosemite to El Capitan.)</div></body></html>