X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=ygkyWvPPmbBLy4HvTiYB4GgsYvingfcsb7F/PDSm9SuPQcU4JKSe2 hjQc25mVbbWQNJQxsDMLCfE+YWu0abkioGIvPNmWNM8iKRfV3n3s+xiJemCr5DaK ZxyRPWqSmSzwTBbjw36UgivJYLCHyLDC0zA1byHzzwGszhGrguyWEQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=8RpPh2L0pFwKuyC3okH8iSfldZg=; b=jHYqXwsHnONvNkbOrz30id+WKRxo qpenS1ta7LO9b1uA7WY57WeuAC7h98UytAaPRqhRSC9ZI3dt1v7TpDBtKuKLSGzN /8HufP6ijrR31SyToPNlfoBNo/Te0pJEOS+yvz9fCTWyBFW6wGPcZnZxgViU1Sd7 so87o4zQIqp+hD0= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: calimero.vinschen.de Date: Mon, 23 Feb 2015 15:47:15 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: bug in csih? Message-ID: <20150223144715.GS437@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <54E7C402 DOT 80306 AT intersystems DOT com> <20150223120522 DOT GI437 AT calimero DOT vinschen DOT de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="TDVcAd+kFgbLxwBe" Content-Disposition: inline In-Reply-To: <20150223120522.GI437@calimero.vinschen.de> User-Agent: Mutt/1.5.23 (2014-03-12) --TDVcAd+kFgbLxwBe Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Feb 23 13:05, Corinna Vinschen wrote: > On Feb 20 18:32, Len Giambrone wrote: > > Running the latest version: > >=20 > > $ cygcheck -c cygwin openssh csih > > Cygwin Package Information > > Package Version Status > > csih 0.9.8-5 OK > > cygwin 1.7.34-6 OK > > openssh 6.7p1-2 OK > >=20 > > When I run > >=20 > > ssh-host-config -y -w XXXXX > >=20 > >=20 > > I get this: > >=20 > > *** Query: Create new privileged user account 'WX64LG\cyg_server' (Cygw= in > > name: 'cyg_server')? (yes/no) yes >=20 > WX64LG is the local machine, right? If you're in a domain, the Cygwin > name should have been "WX64LG+cyg_server", not just "cyg_server". I just tried that myself and that's what I see: *** Info: This script plans to use 'cyg_server'. *** Info: 'cyg_server' will only be used by registered services. *** Query: Do you want to use a different name? (yes/no) no *** Query: Create new privileged user account 'VMBERT8164\cyg_server' (Cygw= in name: 'vmbert8164+cyg_server')? (yes/no) See that the Cygwin username is "vmbert8164+cyg_server"? That's the expected result on a dmain member machine. Sorry, I don't see how it's possible that the csih script came up with "cyg_server" alone in your case, unless it's a domain controller. In theory, this piece of code in /usr/share/csih/cygwin-service-installation-helper.sh does the trick: Function csih_select_privileged_username(), line 2869ff: csih_PRIVILEGED_USERNAME=3D"${username}" if ! csih_use_file_etc "passwd" then # This test succeeds on domain member machines only, not on DCs. if [ "\\\\${COMPUTERNAME,,*}" !=3D "${LOGONSERVER,,*}" ] then # Lowercase of USERDOMAIN csih_PRIVILEGED_USERNAME=3D"${COMPUTERNAME,,*}+${username}" fi fi csih_PRIVILEGED_USERDOMAIN=3D"${COMPUTERNAME}" csih_PRIVILEGED_USERWINNAME=3D"${username}" The only reason this didn't work would be if the test if [ "\\\\${COMPUTERNAME,,*}" !=3D "${LOGONSERVER,,*}" ] didn't have the desired result, but I don't see why that would occur. Any chance you can find out what happened in your scenario? environment? Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --TDVcAd+kFgbLxwBe Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJU6z1zAAoJEPU2Bp2uRE+gaD4P/0di4VDeBieYZLU7BRrNXoMa BY0Uc9vHe4qmJHzLy5PUU+CoXIQkN0t5xANcmKiJskkB2/0Ug3epvjAOLpTeRlF2 w9Sfk29xxPNlJARxIU5SW327ekqe+0TqD6d86WxH1ZcmuZORUNNC8RFb8kkxALdl vkLO7hrUkc5p57susvAKBh5VlMvjjza1kVwmmhQ+netXVoZJ6qTX0UdvOJVLV6j7 GignqmZN/1JU0BmGUWiyc+GCF0DXvmzZy6Zjd8pOJwxvXpeL3bJTxiatN5GGz4nF USXHK52NBh2cTXE7j8GFTFscudRyw2/z82uP0WeqfbIkcSA2cwjH5DwOTMO3ALpV gq1woP2v1qCUo56YMipTqM7KuYuOpjQhXTS1kT5wfcTDLt5kE8R1ef+oujnkNvFT jWjZSGLBpKgFIKAV2byXyW/Esm35elKr9LxRfbV5o7LomqTTGB0w2nr9mwBe6pja getaK7XykCVN58YnaLKUFB0B+QJ1JohHVtwyE9ab6ghgZm3wGBAiznbgQrlTrhfX dg6pHxP6HWZrlnV77/8FcfPVloLC53w+rDQjKtCm1jU1cXV5ld0utWz1+DUduy69 2CuAnw9ZfmeWNGUNlLs1xLikJAx1gWze77n5C62Pncuh8MHbRHNneanrvqX1WG5J qeNVkFiS2SAPc3PHWfiL =CsyR -----END PGP SIGNATURE----- --TDVcAd+kFgbLxwBe--