delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/04/11/11:48:48

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Mime-Version: 1.0 (Apple Message framework v753)
In-Reply-To: <20080402132726.GG4468@calimero.vinschen.de>
References: <D06D8751-81CE-408B-931B-66DA714FE1CC AT von-campe DOT com> <47C4A0DB DOT 6020007 AT cygwin DOT com> <6ADC05D7-7602-4123-81EF-1DE06D26E91F AT von-campe DOT com> <D1627F08-4387-4C0A-94B2-5AFC6C1EA325 AT von-campe DOT com> <006301c890e8$4fa2f070$2708a8c0 AT CAM DOT ARTIMI DOT COM> <FB6643AB-610F-46F7-B019-389E82E687C8 AT von-campe DOT com> <20080402132726 DOT GG4468 AT calimero DOT vinschen DOT de>
Message-Id: <69CA7E11-E788-4149-9246-DCDF5063FBB2@von-campe.com>
From: Alfred von Campe <alfred AT von-campe DOT com>
Subject: Re: How do I run sshd as a particular user?
Date: Fri, 11 Apr 2008 11:48:17 -0400
To: cygwin AT cygwin DOT com
X-Mailer: Apple Mail (2.753)
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 Apr 2, 2008, at 9:27, Corinna Vinschen wrote:

> - Did you check /var/run/sshd.log?  If it's empty it's probably  
> because
>   the domain user has no write permission.
>
> - Does the domain user have an entry in the local /etc/passwd?  sshd
>   needs that when checking file ownership.  And it allows to  
> specify the
>   user to cygrunsrv without the "domain\win_username" syntax.
>
> - Did you chown /etc/ssh* and /var/empty to the domain user when  
> trying
>   to start the service under that account?  That's a must have.

It's taken me a while to get to this, but changing the above  
mentioned permissions did the trick.  I can now log on and access  
network shares!  This will make the build engineers' lives a lot  
easier.  Thank you for a great product and for all the help on this  
list!

Well, I spoke a little too soon.  I got this working on two systems,  
but can not get it to work on a third.  The ssh daemon appears to  
start (neither cygrunsrv -S nor starting it from the Services Panel  
gives an error), but it really does not.  The Event Viewer  
Application log shows the following:

   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 2920: service `sshd'  
failed: signal 11
   raised.

Any ideas what could be raising signal 11 (SIGSEGV) and how I would  
go about debugging this?  ssh access was working to this machine  
before I changed the file system permissions and the account  
information for the sshd service.

Alfred


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