This patch will make fink look for a 'fink-bld' user if run with --build-
as-nobody. If that user exists, the build is done under 'fink-bld', if not,
the user 'nobody' is used, but a warning is issued to install the 'passwd'
package that contains the 'fink-bld' user.
This was motivated by a comment of 'wsanchez' on the #svn channel,
" Just FYI. You should never start a process as user (or group) "nobody".
User nobody exists for NFS' maproot= feature. The idea being that you
can map the root user to nobody on the NFS filesystem, there by giving
root access to no files that aren't world-readable."
A couple of things that need to be discussed:
- Is 'finger' an appropriate method to check for the existence of user
- Would the build_as_user_group method better be in Service.pm
instead of Config.pm?
- Is the warning appropriate or should we disallow 'nobody' alltogether?
- Why did we do
chowname ':admin', $destdir
chowname 'root:admin', $destdir
? That would make the code a little simpler.