1 May 2007 13:41
Re: pkgsrc.txt and sudo
Roland Illig <rillig <at> NetBSD.org>
2007-05-01 11:41:16 GMT
2007-05-01 11:41:16 GMT
Aleksey Cheusov wrote:
> I'm not sure this mailing list is a right place for reporting bugs(?)
> in pkgsrc documentation.
>
> pkgsrc.txt:
> 8.13. Using 'sudo' with pkgsrc
>
> When installing packages as non-root user su(1) feature of
> pkgsrc, it can become annoying to type in the root password for
> each required package installed. To avoid this, the sudo
> package can be used, which does password caching over a limited
> time. To use it, install sudo (either as binary package or from
> security/sudo) and then put the following into your /etc
> /mk.conf:
>
> .if exists(${LOCALBASE}/bin/sudo)
> SU_CMD= ${LOCALBASE}/bin/sudo /bin/sh -c
> .endif
You need to define LOCALBASE _before_ including this snippet. I'm
updating the pkgsrc guide to say that.
Roland
Regards,
RSS Feed