74 | | == Tickets == |
75 | | === [query:reporter=pmagrath@macports.org Reported Tickets] === |
76 | | [[TicketQuery(reporter=pmagrath@macports.org&status=new|assigned|reopened, table)]] |
77 | | === [query:owner=pmagrath@macports Assigned Tickets] === |
78 | | [[TicketQuery(owner=pmagrath@macports.org&status=new|assigned|reopened)]] |
79 | | === [query:cc=pmagrath@macports On CC] === |
80 | | [[TicketQuery(cc~=pmagrath@macports.org&status=new|assigned|reopened)]] |
| 74 | === Use Cases === |
| 75 | Use Case 1: |
| 76 | Current Situation with privilege descalation. Prefix is /opt/local. Root owns prefix. Root privileges needed to fetch, compile, build and install. Drop privileges when not needed. |
| 77 | |
| 78 | Use Case 2: |
| 79 | --with-no-root-privileges. Prefix is usually ~/.macports/opt/local (must be specified with --prefix). User owns prefix. No root privileges needed. Ports requiring root privileges (new user accounts, daemons etc.) cannot be installed without a sudo. It is necessary to use a --prefix with --with-no-root-privileges as the default --prefix isn't modified from /opt/local when --with-no-root-privileges is specified. |
| 80 | |
| 81 | Use Case 3: |
| 82 | --with-shared-directory. Prefix is /opt/local. Root owns prefix but shares full read write with a macports group. All members of macports group can install all packages that only effect the /opt/local hierarchy. Root privileges only needed for installs that effect directories outside the prefix. Drop privileges when not needed. |
| 83 | |