delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/05/13/12:03:54

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Subject: RE: Unable to run sshd under a domain sshd_server account [SOLVED]
Date: Tue, 13 May 2008 11:02:25 -0500
Message-ID: <3B3EFBD49B94AD4DBB7B7097257A8046DD02F7@FDSVAST06SXCH01.flooddata.net>
In-Reply-To: <Pine.GSO.4.63.0805121915470.11953@access1.cims.nyu.edu>
References: <3B3EFBD49B94AD4DBB7B7097257A8046DD020D AT FDSVAST06SXCH01 DOT flooddata DOT net> <Pine DOT GSO DOT 4 DOT 63 DOT 0805121820090 DOT 11953 AT access1 DOT cims DOT nyu DOT edu> <3B3EFBD49B94AD4DBB7B7097257A8046DD0232 AT FDSVAST06SXCH01 DOT flooddata DOT net> <Pine DOT GSO DOT 4 DOT 63 DOT 0805121915470 DOT 11953 AT access1 DOT cims DOT nyu DOT edu>
From: "Schutter, Thomas A." <tschutter AT proxix DOT com>
To: <cygwin AT cygwin DOT com>
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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id m4DG3pBk004910

> > > > > The application event log has this error message:
> > > > >   The description for Event ID ( 0 ) in Source ( sshd ) cannot
> be
> > > > > found. The local computer may not have the necessary registry
> > > > > information or message DLL files to display messages from a
> remote
> > > > > computer. You may be able to use the /AUXSOURCE= flag to
> retrieve
> > > > > this description; see Help and Support for details. The
> following
> > > > > information is part of the event: sshd: PID 2068: service
> `sshd'
> > > > > failed: signal 11 raised.
> > >
> > > Oops -- a segfault.  This is definitely a bug somewhere -- no
> matter
> > > what, sshd should not segfault.
> >
> > Agreed.
> 
> Those problems are usually very hard to reproduce.  If you're set up
to
> build a debug version of sshd and run it under gdb to reproduce the
> fault,
> a stack backtrace would be helpful.

Unfortunately I am not setup to build a debug version.  But I have
tested on a new machine and can report that it happens if user running
the sshd service does not have write permission to the /var/log/sshd.log
file.  In this case it actually seems easy to reproduce.

> > > > In the other thread, Larry Hall pointed me to the FAQ
> > > > http://cygwin.com/faq/faq-nochunks.html#faq.using.shares. One of
> the
> > > > suggestions was to "provide your password to a net use command".
> I
> > > > was unable to make that work, because "net use" never asks for
my
> > > > password:
> > > >   $ net use \\other\f$
> > > >   System error 67 has occurred.
> > > >
> > > >   The network name cannot be found.
> > >
> > > See "net help use":
> > >   The syntax of this command is:
> > >   NET USE
> > >   [devicename | *] [\\computername\sharename[\volume] [password |
> *]]
> > > ...
> > >   password         Is the password needed to access the shared
> > > resource.
> > >   *                Produces a prompt for the password. The
password
> is
> > >                    not displayed when you type it at the password
> > > prompt.
> > >
> > > So, you need to type "net use '\\other\f$' \*" (note the
> > escaped/quoted
> > > '*'), and it'll prompt you for the password.
> >
> > OK.  So on a console cygwin shell:
> >   $ net use '\\other\f$'
> >   The command completed successfully.
> >
> > But when run in a ssh shell (using the sshd_server account):
> >   $ net use '\\other\f$' \*
> >   Type the password for \\zoom\f$: System error 1326 has occurred.
> >
> >   Logon failure: unknown user name or bad password.
> 
> Umm, yes.  Sorry.  I forgot that sshd runs in a pty, which is a pipe
as
> far as Windows is concerned.  And 'net' cannot read the password from
a
> pipe...
> 
> > Same thing happens with:
> >   $ net use '\\other\f$' '*'
> >   $ net use '\\other\f$' "*"
> 
> Actually supplying the password instead of '*' should work.
> 	Igor

OK.  The pipe thing makes sense.  But supplying the password does not
work either:
  $ net use '\\other\f$' MyPassword1
  System error 1909 has occurred.

  The referenced account is currently locked out and may not be logged
on to.

--
Tom Schutter
First American - Proxix Solutions
(512) 977-6822


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