blb at macports.org
Mon Jul 20 18:35:45 PDT 2009
On Mon, Jul 20, 2009 at 07:24:50PM -0500, Ryan Schmidt said:
> My non-root MacPorts 1.7.1 install was configured with
> I don't use "sudo" for most operations. This gives me some assurance
> that arbitrary things on my hard drive are not being modified. I only
> use sudo to install ports that need root access, like those that have
> startup scripts, like apache2 or mysql5-server.
> MacPorts trunk has a new --with-macports-user option. How am I meant
> to configure MacPorts trunk now? What should I specify for the
> macports-user? rschmidt? root? some new user I create? Will I need to
> change my habits about when I use sudo?
On trunk, for non-root installs, the --with-no-root-privileges option should
automatically set the install user and group to your current settings (it
uses id). As for --with-macports-user, you'll want to set that to the same
user when doing non-root, as otherwise it defaults to root currently
(apparently due to the functionality having bugs still ). In the future
this would be the user who would actually own the build as it happens, then
port would only set to root for the actual install.
 - <http://trac.macports.org/browser/trunk/base/aclocal.m4#L358>
More information about the macports-users