Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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 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> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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/