delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/12/05/14:24:49

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:to:subject:date:message-id:content-type
:content-id:content-transfer-encoding:mime-version; q=dns; s=
default; b=HSCnrPuWa67y340yR5uZA6C1kHTEMLElB2JE/OsSpoaZQr3Bx9o5t
9KvZGbpHGtOcxV0USF1pkEOkNer+DTJNHisM9tsGY4ZuuOoyM3l8x3OEHv2YMUxv
WFW4xFRfBUQ4ZLMTbIoFe+9rahPE1x51Ha/vxU33rTX7DtXsze2DXc=
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:to:subject:date:message-id:content-type
:content-id:content-transfer-encoding:mime-version; s=default;
bh=Oivpam2HWMwqmns5fp6srOPkIro=; b=PLWi0iKZAb3w8j5q1ZRut59+j5N7
i2Y9t/g5GBm4144LFvinNth3O063QQULx1bvnGt6iGHrAv1FSNBPzrMMY9tPfcMf
BoyXZAusVev+lMZRy9fW6OVpVOhgRfnTmnMF5pAIYYFsFU8sl8Llvk7mS1TGSTPz
xJJ6kTlUbFy5XHM=
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=-1.9 required=5.0 tests=BAYES_00,MIME_BASE64_BLANKS,NORMAL_HTTP_TO_IP,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=H*r:15.00.1320.000, H*RU:15.00.1320.000, Hx-spam-relays-external:15.00.1320.000, sshd
X-HELO: alln-iport-8.cisco.com
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0AFBAAw8SZa/5hdJa1cGwEBAQEDAQEBC?= =?us-ascii?q?QEBAYM9Zm4nB4N5mRubFAofhTiFLkMUAQEBAQEBAQEBax0LhUwEDVcBIgImAgQ?= =?us-ascii?q?wFQIBDwQTiiOpXIFtOopRAQEBAQEBBAEBAQEBAQEBAR+BD4RFg2gLiy0xgjIFg?= =?us-ascii?q?S0BoUYCAoF0hgCNHZNYliQCERkBgTkBNiImgSdveQFZgSUJhEx4iQ+BFAEBAQ?=
From: "Chris Wilson (chwilso3)" <chwilso3 AT cisco DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Cygwin sshd doesn't use domain user names on boot up
Date: Tue, 5 Dec 2017 19:24:26 +0000
Message-ID: <40190877-370C-45C1-9D35-50B88A67AA4A@cisco.com>
user-agent: Microsoft-MacOutlook/f.28.0.171108
x-ms-exchange-messagesentrepresentingtype: 1
x-ms-exchange-transport-fromentityheader: Hosted
MIME-Version: 1.0
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id vB5JOlmN000649

Hi,

I'm trying to set up sshd service on a Windows 10 build slave VM (for use with Jenkins) which is attached to one of the domains in our network.  I initially ran the ssh-host-config script to generate the cyg_server user and I was able to start the sshd service on Windows.  Assuming that the Windows user is DOMAIN\myuser (real info redacted), I was able to SSH into the machine and the shell prompt shows up correctly:

myuser AT build-slave DOT example DOT com ~
$ pwd
/home/myuser

However, after I reboot the machine, the username that shows up in the prompt changes to the following:

DOMAIN+User(1234567)@build-slave.example.com ~
$ pwd
/home/myuser

If I simply restart the sshd service once the machine is booted, the username changes back from "DOMAIN+User(1234567)" --> "myuser":

# restart sshd
$ net stop sshd
$ net start sshd

# prompt is fixed now
myuser AT build-slave DOT example DOT com ~
$ pwd
/home/myuser

Anybody have an idea what's going on here?  I'm not sure why the username isn't picked up correctly when sshd starts up initially after a reboot.  Is there some kind of dependency that needs to be added to the sshd service on boot?

Thanks,
Chris 


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


- Raw text -


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