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

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: Wed, 11 May 2005 04:49:54 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Chip Olson <ceo AT thsi DOT org>
cc: cygwin AT cygwin DOT com
Subject: Re: Permissions problem mounting NFS shares from Cygwin sshd
In-Reply-To: <20050510214311.GC27244@thsi.org>
Message-ID: <Pine.GSO.4.61.0505110446000.12861@slinky.cs.nyu.edu>
References: <20050510190317 DOT GB27244 AT thsi DOT org> <6 DOT 2 DOT 1 DOT 2 DOT 0 DOT 20050510155711 DOT 09ccf2e8 AT pop DOT prospeed DOT net> <20050510214311 DOT GC27244 AT thsi DOT org>
MIME-Version: 1.0

On Tue, 10 May 2005, Chip Olson wrote:

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

Read the above page again, please.  If I understood your statement
correctly, you've edited /etc/passwd and /etc/group directly.  This is not
*supposed* to have any effect, unless you use the appropriate Windows
tools to adjust group memberships.

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

The usual place to look for the actual errors when starting sshd is the
Windows event log.

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

FWIW, you can try killing the corresponding cygrunsrv process (using
either the Task Manager or "/bin/kill -f") instead of rebooting.
	Igor
-- 
				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