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 Message-ID: <3500515B75D9D311948800508BA37955950648@EX-LONDON> From: Vince Hoffman To: "'Bjoern Kahl AG Resy'" , Cygwin Mailing List Subject: RE: Trouble running sshd as NT-Service Date: Fri, 23 Aug 2002 20:59:33 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g7NK0f413680 what does /var/log/sshd.log say ? if it has "Bad owner or mode for /var/empty" in it then chmod 700 /var/empty then chown -R SYSTEM.SYSTEM /var/empty (was the only prob i had with setting it up with priv separation, thanks to all Corinna's hard work ;) -----Original Message----- From: Bjoern Kahl AG Resy [mailto:kahl AT informatik DOT uni-kl DOT de] Sent: 23 August 2002 20:45 To: Cygwin Mailing List Subject: Trouble running sshd as NT-Service Hallo! Short-Story: I can not run sshd as NT-Service under NT4.0 Server. Starting the service fails with "NT internal error 2140" Long: I am allmost sure, I missed some minor thing, but looking in the archive (found one thread about 2140) and trying google did not give me a usefull hint. I did the following: Setup: - NT-4.0 Server, configured as PDC - downloaded Setup.exe from chywin.com, today, Fri 15:45 MET - did a download from ftp.uni-erlangen.de, full-install expect tetex - moved away old installation, and installed in a fresh directory. no cygwin service running by that time - got a lot of errors from post-install scripts, way to fast to read. - recreated passwd and group, because post-install missed some (all?) of the domain-groups - changed group-ownership of all files and directories to an other domaingroup (Domän-Benutzer -> own_group). Last one is a self-created group. Allmost all files are now owned by adminstrator.own_group (544.11002 here) - rebooted - copied back old sshd-config-files to new /etc - run "sshd-host-config" selected run by cygrunsrv and enabled privSep. The script created a (disabled) user sshd. I used the default CYGWIN variable as suggested by the script - tried to start sshd via control-panel -> error 2140 I assumed privileg problems and played a bit around, but to no avail. sshd still does not start. I tried: - enable the sshd user - added ".exe" suffix to the sshd executable path in the registry - some more things I dont exactly remember - I have verified that SYSTEM has full-access to the sshd-binary and all directories above it (including the windows drive root on which the cygwin-directory in installed) the event-log says "execv: 1: operation not permited". Please find attached the cygcheck-output and the sshd registry-keys. If you need further information, or have any test I should run, please tell me. Thank you Bjoern Kahl -- +---------------------------------------------------------------------+ | Dipl.-Phys. Bjoern Kahl +++ AG Embedded Systems and Robotics (RESY) | | Informatics Faculty +++ Building 48 +++ University of Kaiserslautern| | phone: +49-631-205-2654 +++ www: http://resy.informatik.uni-kl.de | +---------------------------------------------------------------------+ -- 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/