delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/12/09/11:27:05

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_MK
X-Spam-Check-By: sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:x-originating-ip:in-reply-to:references:from :date:x-google-sender-auth:message-id:subject:to:content-type :x-gm-message-state; bh=WuOPse2cUeLmgGXgWZAXMtCFiZNWnCNTovb6Hg7098o=; b=Bwo4bRlyKlq9p4PNaeepfWrYqEXZOmB4JGwDE8Zl5JqQJ4epIMgcUC5WTtp4KkKMjF emZO5bB/KI+PKBtz1/yPGThzhrsEnqNOknTjvHp9N7MLi4jogiyF1NZDXHhg9mVkLX/U X5Op1KL2p1D6jkRsV3f5Jg2lYC/XXyIWfKP9ehwbkAFoTRur6uFTGK45Pk4Ja2Bmj2sU yJWoDuzg3hbP2/f3bouClSND27CpOH9hwtaDecsG7jSZGEXCwZuHTkMxd187BvvEnvQ/ bcklAefEu3CY8odkOc4TxdOA9w2CO5AqAiyyRU6CU1EUaOmOnkN15rxp4qhATz9nswFE ba3g==
MIME-Version: 1.0
In-Reply-To: <CAARFOs9DGXBUet8txodJ7wxM=_ERLznu2U16EiyrgP2Djx0Lvg@mail.gmail.com>
References: <CAARFOs9DGXBUet8txodJ7wxM=_ERLznu2U16EiyrgP2Djx0Lvg AT mail DOT gmail DOT com>
From: Robert Pendell <shinji+cygwin AT elite-systems DOT org>
Date: Sun, 9 Dec 2012 11:26:09 -0500
Message-ID: <CAAeCd-M+z415r7tzn=Ck2+D-1U0o_J2j7yWAUFbzqgsFfLK_FQ@mail.gmail.com>
Subject: Re: Openssh stops working after a few days (problem solved)
To: cygwin AT cygwin DOT com
X-Gm-Message-State: ALoCoQnjz8lycyvYhTT9nB93da0+hQW0umqIKUj0tn0rlrWj6C414TOPTCnPX1+1agrtYFMdAiz9
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Sat, Dec 8, 2012 at 10:07 PM, Mike Richardson <javaguy940 AT gmail DOT com> wrote:
> I was about to post this as a question on here, but I was able to
> solve my problem. I post it here in case anyone else comes along and
> has the same problem.
>
> I'm running Windows Server 2008 R2 Enterprise.  I installed the latest
> Cygwin/openssh package from scratch and everything runs fine for a few
> days.
> Then all of a sudden, I can't make any more connections to the ssh
> server.  My first step is to restart the service in Windows, but I
> receieve the following error:
> "The CYGWIN sshd service on Local computer started and then stopped.
> Some services stop automatically if they are not in use by other
> services or programs."
>
> I then examined the file /var/log/sshd.log and saw the following error message:
> "Privilege separation user sshd does not exist"
>
> I then examine the sshd account on Windows (which does exist). The
> "Account is diabled" box was checked. I uncheck it, as well as check
> the "Password never expires" checkbox which was before unchecked.
> After I click ok, I get the following error message:
> "The following error occured while attempting to save properties for
> user sshd: The password does not meet the password policy
> requirements.  Check the minimum password length, password complexity,
> and password history requirements".
>
> Next, I assign the windows account sshd a sufficiently complex
> password using the windows gui.
> Then I still get the same error "Privilege separation user sshd does not exist"
>
> So I run the following commands:
>
> mkpasswd -l > /etc/passwd
> mkgroup -l > /etc/group
>
> I then restart the windows service, and now everything works fine.
> What I assume what happened is that the sshd account in windows
> somehow became disabled.
>

The ssd user is supposed to be disabled otherwise people can login as that user.

Robert Pendell
A perfect world is one of chaos.

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