X-Spam-Check-By: sourceware.org
Message-ID: <5abc24640708071356g5d4e70d1w690093575c113071@mail.gmail.com>
Date: Tue, 7 Aug 2007 16:56:25 -0400
From: "Andrew Louie" <louiea@gmail.com>
To: cygwin@cygwin.com
Subject: Re: sshd not working on nineteen w2k servers (/var/empty must be owned by root) works on five win2k servers, works with svc acct and works on w2k3
In-Reply-To: <9a6449f40708071343p19cd7d66ofd7c19f544462146@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <9a6449f40708071343p19cd7d66ofd7c19f544462146@mail.gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 8/7/07, Joel Harrison <> wrote:
> -------------------------------
> Here's my test process:
> Clean install + ssh host config .. then:
>
> $ chmod -R 777 log
>
> g000283@gti0w042 /var
> $ net start sshd
> The CYGWIN sshd service is starting.
> The CYGWIN sshd service could not be started.
>
> The service did not report an error.
>
> More help is available by typing NET HELPMSG 3534.
>
> (Ok that didn't work, so import my domain acct that's a local admin)
>
> g000283@gti0w042 /var
> $ mkpasswd.exe -d -u blackberry_svc >> /etc/passwd
>
> (Set up the domain account as the owner of empty)
>
> g000283@gti0w042 /var
> $ chown blackberry_svc empty/
>
> (Also set up the domain account as the service startup account)
>
> g000283@gti0w042 /var
> $ net start sshd
> The CYGWIN sshd service is starting.
> The CYGWIN sshd service was started successfully.
>
> Presto... why did I need to do that?

Im still unsure of your exact process here, but It is my understanding
that sshd needs to be able to access /var/empty and /var/log. so if
you want ssd to run as a service as a user account other than the
system account, /var/log and /var/empty need to be accessible by that
user as well.

Im not exactly sure why though, I have no idea what /var/empty is
supposed to be for or what it does.

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

