Subject: Re: Using sudo in SU_CMD
To: Marc Baudoin <babafou@babafou.eu.org>
From: Julio M. Merino Vidal <jmmv@menta.net>
List: tech-pkg
Date: 09/19/2004 22:22:24
On Sun, 19 Sep 2004 21:26:20 +0200
Marc Baudoin <babafou@babafou.eu.org> wrote:

> I would suggest modifying it that way:
> 
>    .if exists(/usr/pkg/bin/sudo)
>    SU_CMD=/usr/pkg/bin/sudo /bin/sh -c
>    .endif
> 
> which does the right thing when sudo exists and reverts to the
> default value (${ROOT_CMD}) when it doesn't.  I've just tested it
> and it seems to work fine.

I've been using that for months with no problems.  I think we should change
the text accordingly.

-- 
Julio M. Merino Vidal <jmmv@menta.net>
http://www.livejournal.com/users/jmmv/
The NetBSD Project - http://www.NetBSD.org/