Changes between Version 8 and Version 9 of pmagrath


Ignore:
Timestamp:
Jun 27, 2008, 10:36:17 PM (12 years ago)
Author:
pmagrath@…
Comment:

Update re: Privilege Dropping

Legend:

Unmodified
Added
Removed
Modified
  • pmagrath

    v8 v9  
    4242Examine how we could drop root privileges for building. So we still run port using sudo, but for the actual building root privileges are dropped and the configure/build phase runs with the privileges of the current user only (or of some new unprivileged macports user?). Of course this needs investigation how the permissions inside the workpath need to be set to accomplish this.
    4343
    44 ''Most actions are now performed using user privileges, up to and including the destroot stage. For install, the original root privileges are recovered and the install takes place as per usual. To the user, this is seamless and the only difference is that the build files get put in ~/.macports/opt rather than /opt. TODO: replace hardcoded username with one specifically created for macports or (specified for macports) during MacPorts install.''
     44''Most actions are now performed using user privileges, up to and including the destroot stage. For install, the original root privileges are recovered and the install takes place as per usual. To the user, this is seamless and the only difference is that the build files get put in ~/.macports/opt rather than /opt. The user account to use when privileges are dropped can be set in macports.conf post-install or with the --with-macports-user=USER option on the ./configure switch. The default value is the user who installs MacPorts.''
    4545
    4646==== Install MacPorts in your home directory easily ====