delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/02/06/12:57:59

X-Spam-Check-By: sourceware.org
Date: Tue, 6 Feb 2007 18:57:33 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: sshd exits during login attempt on WinXP 2003 x64 if user running sshd is different from user running ssh
Message-ID: <20070206175733.GA26300@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <eqadt0$54d$1 AT sea DOT gmane DOT org>
Mime-Version: 1.0
In-Reply-To: <eqadt0$54d$1@sea.gmane.org>
User-Agent: Mutt/1.4.2.2i
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 Feb  6 09:29, Brian Kasper wrote:
> If I run "c:\cygwin\usr\sbin\sshd -d" in a Windows command prompt 
> started as user "administrator" and then run "ssh -l kasper localhost" 
> in another command prompt started as user "administrator", the session 
> FAILS with the message "/bin/bash: Permission denied".
> 
> If I run "c:\cygwin\usr\sbin\sshd -d" in a Windows command prompt 
> started as user "administrator" and then run "ssh localhost" in a 
> command prompt started as user "kasper", the session FAILS after these 
> sshd debugging messages:

This won't work.  By default, no user has the required permissions to
change the user context.  Start here:

  $ less /usr/share/doc/Cygwin/openssh.README

and here:

  http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-switch

and install sshd as service using the ssh-host-config script.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

- Raw text -


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