www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <47B8FC9F.AFC60944@dessent.net> |
Date: | Sun, 17 Feb 2008 19:33:51 -0800 |
From: | Brian Dessent <brian AT dessent DOT net> |
X-Mailer: | Mozilla 4.79 [en] (Windows NT 5.0; U) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: sshd.log /var/empty must be owned by root and not group or world-writable. |
References: | <000601c871cb$4dcadf60$0a00a8c0 AT a64x23800p> |
X-IsSubscribed: | yes |
Reply-To: | cygwin AT cygwin DOT com |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
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 |
David Christensen wrote: > /var/empty must be owned by root and not group or world-writable. > > 11. Change owner of /var/empty: > > 20080217-144416 Administrator AT a64x23800p /var > $ chown root empty/ > chown: invalid user: `root' > > 12. STFW. root is not a valid user name. Make an educated guess and > try again: On Cygwin, root is a group (an alias to the 'Administrators' group) not a user. So you can "chgrp root" but not "chown root". But that doesn't matter, as really what the above error is saying is that the directory should be owned by the user that is running the ssh daemon, which on most unix systems is root but on Cygwin is SYSTEM since it's a service. So, the error is a little misleading but it's because it's a generic message from OpenSSH. > I don't know how to put the above fixes (chmod, chown) into Cygwin; > perhaps the openssh maintainer can do so. There's nothing to fix, this is already performed by ssh-host-config: # Now check if sshd has been successfully installed. This allows to # set the ownership of the affected files correctly. if cygrunsrv -Q sshd > /dev/null 2>&1 then if [ $_nt2003 -gt 0 -a "${sshd_server_in_sam}" = "yes" ] then _user="sshd_server" else _user="system" fi chown "${_user}" ${SYSCONFDIR}/ssh* chown "${_user}".544 ${LOCALSTATEDIR}/empty chown "${_user}".544 ${LOCALSTATEDIR}/log/lastlog if [ -f ${LOCALSTATEDIR}/log/sshd.log ] then chown "${_user}".544 ${LOCALSTATEDIR}/log/sshd.log fi fi I don't know why running ssh-host-config didn't work, you'd probably have to debug that a little more to find out. Brian -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |