From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 97135 invoked by alias); 8 Dec 2017 00:16:55 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 96811 invoked by uid 89); 8 Dec 2017 00:16:55 -0000 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 Received: from alln-iport-8.cisco.com (HELO alln-iport-8.cisco.com) (173.37.142.95) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 08 Dec 2017 00:16:53 +0000 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?= Received: from alln-core-3.cisco.com ([173.36.13.136]) by alln-iport-8.cisco.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 08 Dec 2017 00:16:52 +0000 Received: from [10.41.50.251] ([10.41.50.251]) by alln-core-3.cisco.com (8.14.5/8.14.5) with ESMTP id vB80Gp3J031017 for ; Fri, 8 Dec 2017 00:16:52 GMT Subject: Re: Cygwin sshd doesn't use domain user names on boot up To: cygwin@cygwin.com Newsgroups: gmane.os.cygwin References: <40190877-370C-45C1-9D35-50B88A67AA4A@cisco.com> <6a47b6c6-032a-37d0-fe56-2ae21e6a5a68@SystematicSw.ab.ca> From: Chris Wilson Message-ID: <67d32ed9-cc36-026c-48dd-730b63417f9b@cisco.com> Date: Fri, 08 Dec 2017 08:58:00 -0000 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> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2017-12/txt/msg00059.txt.bz2 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 ''. *** 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11968 invoked by alias); 8 Dec 2017 00:20:15 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 11956 invoked by uid 89); 8 Dec 2017 00:20:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=H*r:Unknown, privileged, Administrator, State X-HELO: blaine.gmane.org Received: from Unknown (HELO blaine.gmane.org) (195.159.176.226) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 08 Dec 2017 00:20:14 +0000 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1eN6OZ-0005a6-1l for cygwin@cygwin.com; Fri, 08 Dec 2017 01:20:03 +0100 To: cygwin@cygwin.com From: Chris Wilson Subject: Re: Cygwin sshd doesn't use domain user names on boot up Date: Fri, 08 Dec 2017 13:39:00 -0000 Message-ID: <67d32ed9-cc36-026c-48dd-730b63417f9b@cisco.com> References: <40190877-370C-45C1-9D35-50B88A67AA4A@cisco.com> <6a47b6c6-032a-37d0-fe56-2ae21e6a5a68@SystematicSw.ab.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 In-Reply-To: <6a47b6c6-032a-37d0-fe56-2ae21e6a5a68@SystematicSw.ab.ca> X-IsSubscribed: yes X-SW-Source: 2017-12/txt/msg00060.txt.bz2 Message-ID: <20171208133900.kmtYbLxRM1lDE6pizCHU3HPqrJJ58OmlM-jg1FcTL6E@z> 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 ''. *** 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