delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/12/07/19:17:15

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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=Nhs6hIBdp6jUGSga
uMe6VIBn+q3Of4SEDP4gLHHf0Uu+ZXDHqnLAcolbFHqDqpp56SpFN56f8h3cYYvn
/mA4ZhtlwPE4YxYmH12nU/KTtKTNSoBhxyDiN1LsRxh50LfizeUV875JVb0EzCGJ
yRN7o2ae0dqnK5H5AhHdacsTPsw=
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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=Z20aLuF1HPPS8YuDbZGk8E
Zj3gg=; b=TMv+rcrCeeDAlMxyvju2IPGfOUBiNTiHoJP7Bf8GYAD996JEaK6Ey9
xX9EKvtM1O8Hz3+fn5mgN4W47EK/Yeslma3Csc7VGKdkJ5QQWv48h/z+oLH+Ad1Q
Y4F2WVDYS8+tWnnL6C1+HhJixJ8s++z+RnEKgSUeleRqN8pG6XGXg=
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,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=Administrator, Automatic, Dependencies, defaulting
X-HELO: alln-iport-8.cisco.com
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0CfAADk2Cla/4gNJK1cGQEBAQEBAQEBA?= =?us-ascii?q?QEBAQcBAQEBAYM+gViOSY5/QAEBAQEBAQUBgSwFlwkUggEKhTsChWM/GAEBAQE?= =?us-ascii?q?BAQEBAWsohSMBAQMBAQE2RgsLLQMWSQENEwgBAYoWBQiqOopjAQEBAQYCASWDW?= =?us-ascii?q?YIKgQ6CWoMChFyBBA0ChSoFgS0BiRCHS4EUXo8EApUdghaGEYNlhXyBVJZZgTs?= =?us-ascii?q?fOYFPMhojgVOBJoJMBRyCCCCIL4IjAQEB?=
Subject: Re: Cygwin sshd doesn't use domain user names on boot up
To: cygwin AT cygwin DOT com
Newsgroups: gmane.os.cygwin
References: <40190877-370C-45C1-9D35-50B88A67AA4A AT cisco DOT com> <6a47b6c6-032a-37d0-fe56-2ae21e6a5a68 AT SystematicSw DOT ab DOT ca>
From: Chris Wilson <chwilso3 AT cisco DOT com>
Message-ID: <67d32ed9-cc36-026c-48dd-730b63417f9b@cisco.com>
Date: Thu, 7 Dec 2017 16:16:46 -0800
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.5.0
MIME-Version: 1.0
In-Reply-To: <6a47b6c6-032a-37d0-fe56-2ae21e6a5a68@SystematicSw.ab.ca>

On 12/5/17 12:17 PM, Brian Inglis wrote:

> Did you install the service by running ssh-host-config?

Yes.

FYI, I had to run ssh-host-config as a domain user.  When I first ran it 
as a local Administrator, the ssh-host-config script printed the following:

*** Info: User 'cyg_server' has been created with password '<redacted>'.
*** 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 'cyg_server' account.

passwd: unknown user cyg_server
*** Warning: Setting password expiry for user 'cyg_server' failed!
*** Warning: Please check that password never expires or set it to your 
needs.
*** Warning: Expected privileged user 'cyg_server' does not exist.
*** Warning: Defaulting to 'SYSTEM'

*** Info: The sshd service has been installed under the LocalSystem
*** Info: account (also known as SYSTEM). To start the service now, call
*** Info: `net start sshd' or `cygrunsrv -S sshd'.  Otherwise, it
*** Info: will start automatically after the next reboot.

> Check service dependencies with:
> $ cygrunsrv -VQ sshd
> Service             : sshd
> Display name        : CYGWIN sshd
> Current State       : Running
> Controls Accepted   : Stop, Preshutdown
> Command             : /usr/sbin/sshd -D
> stdin path          : /dev/null
> stdout path         : /var/log/sshd.log
> stderr path         : /var/log/sshd.log
> Process Type        : Own Process
> Startup             : Manual
> Dependencies        : cygserver, tcpip
> Account             : .\cyg_server 

$ cygrunsrv -VQ sshd
Service             : sshd
Display name        : CYGWIN sshd
Current State       : Running
Controls Accepted   : Stop
Command             : /usr/sbin/sshd -D
stdin path          : /dev/null
stdout path         : /var/log/sshd.log
stderr path         : /var/log/sshd.log
Environment         : CYGWIN="ntsec"
Process Type        : Own Process
Startup             : Automatic
Account             : .\cyg_server

> You may have to add an additional dependency on netlogon or other AD services to
> ensure they are available before sshd starts.

I tried adding netlogon as a dependency to sshd, but didn't see any 
change in behavior.

> If your service start is Automatic, you may also want to change it manually to
> Automatic (delayed start), to allow time for network services to be available.

Changing it from "Automatic" to "Automatic (delayed start)" fixed the 
issue.  This is my first time messing with Windows services and didn't 
see this option initially.

Thanks for the suggestion Brian!

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