delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/06/11:51:04

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
Message-ID: <DAF67AD54A4DC5438A2AA37A5447ABFA0674F983@its-exc3.acs.rochester.edu>
From: "Ordal, Peter" <peter DOT ordal AT rochester DOT edu>
To: cygwin AT cygwin DOT com
Subject: sshd "owned by root" error
Date: Fri, 6 May 2005 11:50:21 -0400
MIME-Version: 1.0
X-IsSubscribed: yes

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.

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.

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.

Cheers,
Peter

References:
Google search -
http://www.google.com/search?q=cygwin+%22must+be+owned+by+root+and+not+group
%22
Best results from that:
1 - http://archive.erdelynet.com/ssh-l/2003-09/msg00048.php
2 - http://www.cs.princeton.edu/~sudhakar/linux/trivia.html
3 - http://www.derkeiler.com/Newsgroups/comp.security.ssh/2003-05/0219.html
(rather spirited)

From this list - http://sourceware.org/ml/cygwin/2005-03/msg00514.html

--
Peter Ordal
Webmaster
Office of College Enrollment
University of Rochester

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