X-Spam-Check-By: sourceware.org
Date: Tue, 24 Jan 2006 09:46:26 -0500 (EST)
From: Igor Peshansky <pechtcha@cs.nyu.edu>
Reply-To: cygwin@cygwin.com
To: JC Oosthuizen <jc.oosthuizen@gmail.com>
cc: cygwin@cygwin.com
Subject: Re: ssh starting problems.
In-Reply-To: <37ce792e0601240245t740b7df1x3f89005ee5a8931d@mail.gmail.com>
Message-ID: <Pine.GSO.4.63.0601240943430.27934@access1.cims.nyu.edu>
References: <37ce792e0601190536x1268deaal93e2e8d7d5ec1b6a@mail.gmail.com>    <loom.20060119T155435-657@post.gmane.org> <37ce792e0601240245t740b7df1x3f89005ee5a8931d@mail.gmail.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Tue, 24 Jan 2006, JC Oosthuizen wrote:

> > Did you use /usr/bin/ssh-host-config to set up sshd on the Win 2003
> > server? Currently I am running sshd on two such servers and set them
> > up using the script. The script should detect that you are using Win
> > 2003 and will ask if you want it to create a "sshd_server" user
> > account and assign the privileges it needs under Local Security Policy
> > to run properly. The sshd service should then be run under this
> > account.
>
> ssh was setup using ssh-host-config and worked correctly. I then
> upgraded cygwin by removing it and reinstalling it. In this process the
> sshd_server account was not deleted and was not recreated either. This
> caused the problems that occured. I just removed the sshd_server user
> and then ran ssh-host-config again and all worked as it should.

Ah, this is a clue.  By removing Cygwin, you probably also removed
/etc/passwd.  AIUI, without sshd_server in /etc/passwd, user context
switching won't work.  Re-running ssh-host-config added sshd_server to
/etc/passwd again.

I'm not too well-versed in the details of ntsed -- Corinna should be able
to confirm or deny the above.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha@cs.nyu.edu | igor@watson.ibm.com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

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

