Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
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
Date: Tue, 10 May 2005 17:43:11 -0400
From: Chip Olson <ceo@thsi.org>
To: Cygwin List <cygwin@cygwin.com>
Subject: Re: Permissions problem mounting NFS shares from Cygwin sshd
Message-ID: <20050510214311.GC27244@thsi.org>
Mail-Followup-To: Cygwin List <cygwin@cygwin.com>
References: <20050510190317.GB27244@thsi.org> <6.2.1.2.0.20050510155711.09ccf2e8@pop.prospeed.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <6.2.1.2.0.20050510155711.09ccf2e8@pop.prospeed.net>
User-Agent: Mutt/1.4i
X-IsSubscribed: yes

Quoth Larry Hall:
>    At 03:03 PM 5/10/2005, you wrote:
> 
>    <snip>
> 
>      I read in the archives that logging in with public-key authentication
>      can cause problems like this, and indeed, if I log in via ssh with -o
>      PubKeyAuthentication=no, the mount works fine (and reports my user's
>      UID and GID, not 0 for both as when I mount from the desktop).
> 
>      I have another machine here that mounts just fine from a public-key
>      ssh session. Unfortunately, the person who configured it is no longer
>      with the company. :-(
> 
>    See the FAQ entry:
> 
>    Why don't my services work (or access network shares)?
>    < http://cygwin.com/faq/faq_toc.html#TOC33>

After reading the FAQ entry, the referenced cygrunsrv README and
http://cygwin.com/cygwin-ug-net/ntsec.html, I made the following
changes to my configuration, independently of each other:

- Changed the group IDs of Administrator and my user account from 513
(None) to 544 (Administrators). This had no effect.

- Reinstalled sshd so as to log in as Administrator, as follows: 

cygrunsrv --install sshd -u Administrator -w mypasswd -p /usr/sbin/sshd.exe

When I subsequently ran cygrunsrv --start sshd, I got: 
cygrunsrv: Error starting a service:  QueryServiceStatus: Win32 error 1053:
The service did not respond to the start or control request in a timely fashion.

sshd was then hung in "starting" state, according to Service Manager,
and I had to reboot to clear it.

-- 
-Chip Olson | ceo@thsi.org | "And the sands will roll out a carpet of 
gold / For your weary toes to be a-touchin' / And the ship's wise men 
will remind you once again / The whole wide world is watchin'"  
                                 -Bob Dylan, "When The Ship Comes In"

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

