Subject: Re: pkgsrc as non-root?
To: Georg Schwarz <geos@epost.de>
From: Jonathan Perkin <jonathan@perkin.org.uk>
List: tech-pkg
Date: 04/03/2004 17:07:10
--E+IgQzR66AIOcbjA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* On 2004-04-03 at 16:57 BST, Georg Schwarz wrote:

> Now when installing packages, I am asked to become root
> although LOCALBASE is fully writable by the build user.  Is
> there a switch that prevents this? Or is it simply a bug?

Two ways around it IIRC, either (in mk.conf):

  SU_CMD=3D /bin/sh -c

or what I use these days:

  ID=3D ~/bin/fakeid

  $ cat ~/bin/fakeid
  #! /bin/sh
  echo 0
  exit 0
  $

pkgsrc as non-root is very common these days, so it may make
sense for us to implement a standard variable for it..

Cheers,

--=20
Jonathan Perkin                         <jonathan@perkin.org.uk>
BBC Internet Services         http://www.perkin.org.uk/jonathan/

--E+IgQzR66AIOcbjA
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iQEVAwUBQG7hLiFee6/VMqV4AQIZnAf+M0qSrwdyc9hDa8BWtWLd2QIY8c/agiWR
0K2o52iB0oSBqQIik3lR/Hoc8IHxiT1P7Rqa7TlAzYjgUeEEyxAvjZ15Jb64T9WS
pi8EiSVXjG8Xtovon75cYCRj4pINIyp2Bp21Bw6NRY3LLdPHJBJTtvRr/P0p302d
DqYxD4iF99yJhYnGO01jkja3HWLYzHx3VcjTdes3qi/OtWlByQ2mp77AMDFa7LPJ
aeu/slx+h4BW3zPzna4ahimcH5Lv3JsuPOY/vtShvsdZvb5t78u5LxZvFL0f9nzw
KJYMUR6jBHGfLnWV67dfWM5ejGi1ObtKI2kPn8UJmlzJ2qOn+wwiSw==
=plYy
-----END PGP SIGNATURE-----

--E+IgQzR66AIOcbjA--