www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/12/08/10:13:04

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Mon, 8 Dec 2008 16:13:50 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Cc: Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm>
Subject: Re: ssh-host-config problem on windows 2003, please help.
Message-ID: <20081208151350.GY12905@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com, Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm>
References: <582532 DOT 8302 DOT qm AT web53310 DOT mail DOT re2 DOT yahoo DOT com>
MIME-Version: 1.0
In-Reply-To: <582532.8302.qm@web53310.mail.re2.yahoo.com>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Dec  2 12:45, T Z wrote:
> I am trying to automate my cygwin install on a windows 2003 box
> [...]
> but when I then run
> c:\cygwin\bin\bash.exe --login /usr/bin/ssh-host-config --yes --cygwin ntsec --pwd loser as the administrator of the pc (not in domain) it seems to run fine thru most if the script but then when it gets to the line where it asks if you want to change the user of cyg_server it is AUTOMATICALLY answering yes which then I have to retype it in.  I am running version 2.573.2.3
> 
> what is the problem.  Can someone please help?

This (untested) patch to the service helper script
/usr/share/csih/cygwin-service-installation-helper.sh
should fix that problem.


Index: cygwin-service-installation-helper.sh
===================================================================
RCS file: /sourceware/projects/cygwin-apps-home/cvsfiles/csih/cygwin-service-installation-helper.sh,v
retrieving revision 1.15
diff -u -p -r1.15 cygwin-service-installation-helper.sh
--- cygwin-service-installation-helper.sh	22 Aug 2008 03:56:43 -0000	1.15
+++ cygwin-service-installation-helper.sh	8 Dec 2008 15:10:36 -0000
@@ -2277,7 +2277,7 @@ csih_select_privileged_username()
       echo ""
       csih_inform "This script plans to use '${username}'."
       csih_inform "'${username}' will only be used by registered services."
-      if csih_request "Do you want to use a different name?"
+      if ! csih_request "Do you want to use this account name for running this service?"
       then
         csih_get_value "Enter the new user name:"
         username="${csih_value}"


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019