delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/08/01/12:15:50

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
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Info: This message was accepted for relay by
smtp03.mrf.mail.rcn.net as the sender used SMTP authentication
X-Trace: UmFuZG9tSVb93mb7WiFkTe5FuC2kDCkbTUSZ9JekeUsgZGcmBzzJUI6r+v228yah
Message-ID: <3F2A9145.4000909@cygwin.com>
Date: Fri, 01 Aug 2003 12:11:49 -0400
From: Larry Hall <cygwin-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Ville Herva <vherva AT niksula DOT hut DOT fi>
CC: cygwin AT cygwin DOT com
Subject: Re: Administrator lacking super-user privileges on cygwin installation
References: <3F299C67 DOT 1070700 AT aol DOT net> <3F29C4F1 DOT 8010805 AT cygwin DOT com> <02e101c357e0$82350730$6902a8c0 AT markonius> <3F2A868F DOT 3050301 AT cygwin DOT com> <20030801155323 DOT GC214799 AT niksula DOT cs DOT hut DOT fi>
In-Reply-To: <20030801155323.GC214799@niksula.cs.hut.fi>

Ville Herva wrote:

> I think I have somewhat similar problem with setting up sshd. It must be
> something stupid, but this has happened to me on two separate machines. As
> it happens, someone else had initially set up cygwin on both of them, so I
> don't know exactly what options were used (but I assume they are fairly
> default). Another is NT4/SP6, the other is W2k/SP3, both use NTFS.
> 
> The problem: After I installed sshd with setup.exe, and run ssh-host-config,
> I was unable to get the service running as SYSTEM user.
> 
>>From event log, I found this:
>  User: NT AUTHORITY\SYSTEM
>  sshd : PID 528 : starting service `sshd' failed: execv: 255, error 255.
> 
> /etc/ssh* was owned by SYSTEM, but if I changed all that to owned by user, I
> was able to run "sshd -d -D" from command line as user. Also If I changed
> the service to be executed as user, it started up just fine.
> 
> I already used a fair amount of time trying to work out what might have been
> the cause (and I'm somewhat satisfied with sshd service running as user) so
> I'm taking the lazy attitude and asking here whether someone here has seen
> something like this or able to tell off-hand whgat might be the culprit...
> 
> 


Please *attach* your cygcheck output next time rather than including
it in the text of your message.

I suggest the following two changes.

   1. Remove 'ntea' from your CYGWIN environment variable.

   2. Do the following:

cat 
/proc/registry/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/sshd/Parameters/Environment/CYGWIN


      It should read 'binmode ntsec tty'.  If it doesn't, use the registry
      editor or regtool to change it to that.  Restart sshd as the 'SYSTEM'
      user.

See if that helps.

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746


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