delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/07/28/22:14:22

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
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.1.0.6.0.20040728215904.033a3f68@pop.prospeed.net>
X-Sender:
Date: Wed, 28 Jul 2004 22:06:11 -0400
To: "Walter Selent" <wselent AT triant DOT com>, <cygwin AT cygwin DOT com>
From: Larry Hall <lh-no-personal-replies-please AT cygwin DOT com>
Subject: Re: Solution to a problem of accessing remote file shares when logged in via ssh
In-Reply-To: <FCEFKBFLOKDDKHBDMMMLGEDNCNAA.wselent@triant.com>
References: <FCEFKBFLOKDDKHBDMMMLGEDNCNAA DOT wselent AT triant DOT com>
Mime-Version: 1.0

At 08:30 PM 7/28/2004, you wrote:

>I found a solution to a ssh/cygwin and file sharing (smb/samba)
>problem which had been bothering me for quite a while.  I looked at
>the FAQ and did some google searches and see where others have
>reported a similar problem in the mailing list archive but didn't
>see the solution I came across being reported.
>
>My problem was that I am using a persistent file share directory
>created using the command on machine A running Windows 2K and has
>cygwin installed:
>
> mount -f -s -b -E "//MachineB/dirName" "/dirName"
>
>and if I was using Machine A I could do a "cd /dirName" and
>it worked fine, but if I tried to ssh into Machine A and then
>do a "cd /dirName" I got a permission denied error.
>
>Previous suggestions in the mailing list for similar problems (related
>to "net use") were that it may be related to the setting of the CYGWIN
>environment variable by setting or unsetting either nosmbntsec or
>smbntsec values for it.  However that didn't change anything for me.
>
>What finally worked for me was to go to 
>
> Settings -> Control Panel -> Administrative Tools -> Services
>
>and to change the LogOn userid for the "CYGWIN sshd" service from
>"Local System account" to a particular user on my domain.  Now things
>work OK for me if I ssh in and want to access remote file shares. 
>
>This may not be the right solution for all situations, ie. if you have
>multiple people logging in to a machine via cygwin/ssh and they all
>need to get their own privileges, but it works for my needs as I just
>need one account one this machine and I'm the only one who uses it.



Yep, that's one option.  Another is to use 'ssh' with password authentication
rather than public key.  A third is to make the share in question accessible
by everyone, so authentication isn't required.  Each of these options has a 
downside but may be viable for particular situations.  AFAIK, these are the
only three options that allow one to get access to a network share through
'ssh'.  



--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


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