delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/12/05/03:44:32

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Wed, 5 Dec 2001 09:44:01 +0100
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Illegal User Error Attempting to Authenticate in sshd
Message-ID: <20011205094401.B11970@cygbert.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <Pine DOT GSO DOT 3 DOT 96 DOT 1011204172951 DOT 24572A-100000 AT yang DOT interaccess DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <Pine.GSO.3.96.1011204172951.24572A-100000@yang.interaccess.com>; from davep@interaccess.com on Tue, Dec 04, 2001 at 05:32:08PM -0600

On Tue, Dec 04, 2001 at 05:32:08PM -0600, Dave Pinsker wrote:
> Using "cygrunsrv" to install a service is successful, however am unable 
> to successfully start service either through "cygrunsrv -S" or Win's
> Service Manager. Returns the error "Service did not return an error", 
> as seen in other postings. Numerous attempts with different configuration
> settings seem to say that using cygrunsrv with my configuration is a nogo.

A good way to debug problems in sshd when started as service is,
Use `-d' instead of `-D' as argument.  Then start the service
and after the service start has finished (successfully or not)
examine the debug output in /var/log/sshd.log.  This will give
you a clue, perhaps.  But note that when you start sshd with
the `-d' option, the service will automatically stop after the
first successful connection automatically.

In earlier posting on this list we discussed adding dependencies
to other services as e.g Tcpip or LanmanWorkstation.  But that's
not your problem here, probably.

Another very important point is, check the permissions of the
/etc directory and the permissions of /etc/passwd, /etc/group
and /etc/ssh* overcarefully.  After an installation with setup,
the permissions are sometimes so that SYSTEM doesn't have
appropriate permissions on /etc or subsequent files as soon as
`ntsec' is used.  It's not necessary for SYSTEM to have write
access but read access should be given.  So try

	chmod 755 /etc
	chmod 644 /etc/passwd /etc/group

etc.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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