delorie.com/archives/browse.cgi | search |
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:from:content-type:subject:date:message-id:to | |
:mime-version; q=dns; s=default; b=v1YziZQauCU/UO/3IHOx2rfkXB5AP | |
vIUhuOnL/xgvhS6gvB5EC1X5hAcPuINUCvzGz5qMefPsD50zTQvF6SQWOxDl8166 | |
AjZOefLyFBn5lx2RSCJuNwgFRVbbhrdLgeQynO//IeY+IIxvww9O0ZkGDMfI5267 | |
1wLp2mSUA1dRTU= | |
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:from:content-type:subject:date:message-id:to | |
:mime-version; s=default; bh=EyP5+WhtxIhQvYqGCErVl/x32QA=; b=Dns | |
H3uskwGd3ImXvltSR6KMJ/Nyexhzyf845tFYCqHXKXPr/mN1rp/Botz6q9SbALdm | |
fcbbdBsDdHOk80OrdlMuSxtEiQigVZNQwKQdxXBP7omDIloK+LNuIWaTy8jAHbJ4 | |
Me1D+gzkgMh9jDQGVJv/zIORiU9oKzalWIN1Nfqw= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.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 |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-0.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 |
X-HELO: | mail-wi0-f179.google.com |
X-Google-DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-type:subject:date:message-id:to :mime-version; bh=Lm+v2NFyP9/prhsLqDUR6CD1lV6Nn8MBgvnEa1ZkoJE=; b=Xx1ibdINvXx0oG6RDxDF+eW+C3/um1KlIYhC6ZYAbKf1jDUE77Wpmz32Z74pg7zZ7F QyPfnDrDSHMNBcPXjsEAaeksKRggB1tGnj5HI0Nkn1Y8bIAa0pevWlKV1DtF9mZtC0aD 3mNjNuXVdkPG8c9PLWFuLI+0JNn6Rf7SJfNm6WDktAXekvdXCUCexQsso3CoaN37ulwa pypdNJuY7JDsU83/kg0Fc852Zt3VED3O9tOrEoQgFa/g0upc0UlaaL/xjWvaNQUhu+Tb 5yAKwYX1TwUMpfqNAVHwknKmX7S+gsU+hWwIkJyIP6Ttm6Slke7VNNbqqgfkHMva5xW9 TceA== |
X-Gm-Message-State: | ALoCoQkw8JYdBFW9u4+cEqKbvYHxFoRl0Rzp68mvio181t94shpOi7Xl9psHVTErxWAfzmGNSmcE |
X-Received: | by 10.180.103.199 with SMTP id fy7mr3170097wib.85.1443892369660; Sat, 03 Oct 2015 10:12:49 -0700 (PDT) |
From: | Peter Moore <pmoore AT mozilla DOT com> |
X-Pgp-Agent: | GPGMail 2.5.2 |
Subject: | strange cygwin sshd user generated (user name includes machine name) |
Date: | Sat, 3 Oct 2015 19:12:47 +0200 |
Message-Id: | <E7EAC5BC-C386-448C-B40D-53A1096374F2@mozilla.com> |
To: | cygwin AT cygwin DOT com |
Mime-Version: | 1.0 (Mac OS X Mail 8.2 \(2104\)) |
--Apple-Mail=_702751AD-EC79-4F3F-8F8E-667ACAADF4B8 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, I have a powershell script for installing cygwin and setting up sshd which = I am using as UserData when firing up a Windows 2012 R2 instance in AWS EC2. The same command succeeds when run manually, but fails when called from aut= omation. I=E2=80=99m trying to understand what it is that is different, so = I can fix it in automation. The command called is: ssh-host-config -y -c 'ntsec mintty' -u 'cygwinsshd' -w 'qwe123QWE!@#' When I run manually, logged in as Administrator, I get a log line like this= (notice the correct =E2=80=9CCygwin name=E2=80=9D): *** Query: Create new privileged user account 'WIN-EFPDIM0SAUP\cygwinsshd' = (Cygwin name: =E2=80=98cygwinsshd')? (yes/no) yes When I run from automation, the log line looks like this (notice the incorr= ect =E2=80=9CCygwin name=E2=80=9D): *** Query: Create new privileged user account 'WIN-EFPDIM0SAUP\cygwinsshd' = (Cygwin name: 'win-efpdim0saup+cygwinsshd')? (yes/no) yes It seems the extended =E2=80=9CCygwin name=E2=80=9D which I get in automati= on causes ssh-host-config to fail. I=E2=80=99m trying to establish what cau= ses the cygwin name to get the prefix of the machine name, since this seems= to cause the problem. For reference, below I=E2=80=99ve put the logs in both the successful (manu= al) case, and the failing (automated) case. If anyone can point me to the source code of ssh-host-config I=E2=80=99m al= so happy to dig - I couldn=E2=80=99t find it online. So if you=E2=80=99re n= ot sure, but know where the source is, I=E2=80=99m happy to look. Many thanks in advance! Pete SUCCESSFUL run (when executed manually): *** Query: Create new privileged user account 'WIN-EFPDIM0SAUP\cygwinsshd' = (Cygwin name: =E2=80=98cygwinsshd')? (yes/no) yes *** Info: User =E2=80=98cygwinsshd' has been created with password 'qwe123Q= WE!@#'. *** Info: If you change the password, please remember also to change the *** Info: password for the installed services which use (or will soon use) *** Info: the =E2=80=98cygwinsshd' account. *** Info: The sshd service has been installed under the =E2=80=98cygwinsshd' *** Info: account. To start the service now, call `net start sshd' or *** Info: `cygrunsrv -S sshd'. Otherwise, it will start automatically *** Info: after the next reboot. *** Info: Host configuration finished. Have fun! FAILED run (when called in automation): *** Query: Create new privileged user account 'WIN-EFPDIM0SAUP\cygwinsshd' = (Cygwin name: 'win-efpdim0saup+cygwinsshd')? (yes/no) yes *** Info: User 'win-efpdim0saup+cygwinsshd' has been created with password = 'qwe123QWE!@#'. *** Info: If you change the password, please remember also to change the *** Info: password for the installed services which use (or will soon use) *** Info: the 'win-efpdim0saup+cygwinsshd' account. *** Warning: Setting password expiry for user 'win-efpdim0saup+cygwinsshd' = failed! *** Warning: Please check that password never expires or set it to your nee= ds. No user or group 'win-efpdim0saup+cygwinsshd' known. *** Warning: Assigning the appropriate privileges to user 'win-efpdim0saup+= cygwinsshd' failed! *** ERROR: There was a serious problem creating a privileged user. --Apple-Mail=_702751AD-EC79-4F3F-8F8E-667ACAADF4B8 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQEcBAEBCAAGBQJWEAyPAAoJEIKV/ne0df68BecH/2xzj//gBaxKnGYzOP5gkz2B iZyTTdTPQLeIdYcLjPtHCzApjRKN2rPvPT+gnKrY6NgU6pNS67LtId5zIhDLCGf5 ZE3ygq22TzL38AEeo3zopG/4C1PVU8CGFNTvBoMd3+U0ThLmSznSU6DgcXDFIsUF Lp9M37xGI+6W4E9k+RAIYgR3jdpHlFcS5klfK2yKo5QlxObytdwx5Mpon0QoMNYH 3XMkl7H8KMu8zHJF7NbwEyLrqqE6iuhcLQoODmd0r6f/5pV64Xmru0MDXSfi1bE+ Mp31sITbh13t9z3S5lXFQ/D/frMQV7Rb+DOOgbJfRE0Ibm5miUPFp1toFR6OKuE= =bgh3 -----END PGP SIGNATURE----- --Apple-Mail=_702751AD-EC79-4F3F-8F8E-667ACAADF4B8--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |