X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 	tests=AWL,BAYES_20,RCVD_IN_DNSWL_LOW,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <49E5E865.1030005@cwilson.fastmail.fm>
Date: Wed, 15 Apr 2009 10:00:05 -0400
From: Charles Wilson <cygwin@cwilson.fastmail.fm>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: [openssh] unnatended instalation + forcing service account
References: <af075b00904141055w9b6eba0t6e9f79190a3f9ad6@mail.gmail.com>  	<20090415083139.GI15443@calimero.vinschen.de> <af075b00904150330r5d4de0fdj4c2edd05d26f32b5@mail.gmail.com>
In-Reply-To: <af075b00904150330r5d4de0fdj4c2edd05d26f32b5@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Julio Costa wrote:
> Came to think of it, there is also another possibility (and a simpler
> one), and that is to code the --yes option on the ssh-host-config to
> use the (new) -f option to the csih, avoiding coding the extra
> parameter (--force) just for this behavior. After all, this behavior
> should be required for --yes and possibly is not very useful if
> ssh-host-config is not invoked with --yes.
> What do you think?

That's what I did for iu-config;

  -y | --yes )
    csih_auto_answer=yes
    opt_force=yes
    ;;

  -n | --no )
    csih_auto_answer=no
    opt_force=yes
    ;;

I then used $opt_force to determine whether -f should be passed to
csih_select_privileged_username.

--
Chuck



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

