Subject: Re: Using sudo in SU_CMD
To: Marc Baudoin <>
From: Julio M. Merino Vidal <>
List: tech-pkg
Date: 09/19/2004 22:22:24
On Sun, 19 Sep 2004 21:26:20 +0200
Marc Baudoin <> 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 <>
The NetBSD Project -