delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/06/12:42:09

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Fri, 6 May 2005 12:41:55 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: "Ordal, Peter" <peter DOT ordal AT rochester DOT edu>
cc: cygwin AT cygwin DOT com
Subject: Re: sshd "owned by root" error
In-Reply-To: <DAF67AD54A4DC5438A2AA37A5447ABFA0674F983@its-exc3.acs.rochester.edu>
Message-ID: <Pine.GSO.4.61.0505061233260.9401@slinky.cs.nyu.edu>
References: <DAF67AD54A4DC5438A2AA37A5447ABFA0674F983 AT its-exc3 DOT acs DOT rochester DOT edu>
MIME-Version: 1.0

On Fri, 6 May 2005, Ordal, Peter wrote:

> I just finished an install of Cygwin's OpenSSH on XP SP 2. Along the way I
> got the error:
>
> /var/empty must be owned by root and not group or world-writable.
>
> This has been discussed several places before, I know. Still, I had a
> different experience than previous posts. I found that what "owned by root"
> meant was actually owned by the account running sshd. So, when I ran
> /usr/sbin/sshd -D under my domain account, I had to chown /var/empty to my
> account.

The above might be a good candidate for the FAQ...

> I tried to get sshd to run as a service under the system account, but it
> wouldn't start. The console error message (on typing net start sshd) was not
> helpful, and the event log just said "starting service `sshd' failed: execv:
> 255, error 255." Even with /var/empty chowned to system, no luck. So I was
> forced to change the sshd service to run as my domain account, and to
> similarly take ownership of /var/empty.

Please review and follow the Cygwin problem reporting guidelines outlined
in <http://cygwin.com/problems.html>.  Please pay special attention to the
part where you're asked to attach (as an uncompressed text *attachment*)
the output of "cygcheck -svr" on your system.

In the absense of the above...  (* dusts off crystal ball, peers inward
intently *)  My cloudy little helper here shows that you have user mounts
(installed Cygwin as "Just for me") or some DLL permission issues.  Please
check out <http://cygwin.com/faq/faq_3.html#SEC33>.  If your mounts *are*
system-level mounts, please check the permissions on the relevant DLLs in
/bin (and "chmod a+x" them so that the SYSTEM user has execute access).
FWIW, the same advice was given in the followup to the Cygwin list thread
that you quoted.

> I found this error message originates on line 1166 of sshd.c in the openssh
> package. Perhaps it should be changed. Saying "owned by root" doesn't make
> much sense here.

Agreed.  <http://cygwin.com/acronyms/#PTC>.
	Igor
P.S. Please make sure you follow the official Cygwin documentation (e.g.,
/usr/share/doc/Cygwin/openssh-*.README).  The documentation found on the
web (and especially that from erdelynet.com) has caused countless grief to
Cygwin users.
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

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