Subject: Re: bulk build and sudo
To: None <tech-pkg@netbsd.org>
From: Klaus Heinz <k.heinz.feb.vier@onlinehome.de>
List: tech-pkg
Date: 02/29/2004 06:51:40
Charlie Allom wrote:

> I wish I could figure out the semantics of SU_CMD (ROOT_CMD??) to use 
> sudo in normal pkgsrc building!

$ grep SU_CMD /etc/mk.conf
SU_CMD=sudo su - root -c

You need to set up /usr/pkg/etc/sudoers (using visudo):
  charlie   ALL=(root) /usr/bin/su - root *

Maybe this entry could be made more strict, but it's sufficient for me.

I think this is also mentioned in Packages.txt.
ciao
     Klaus