delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/05/09/04:14:51

X-Spam-Check-By: sourceware.org
Date: Tue, 9 May 2006 01:14:36 -0700
From: clayne AT anodized DOT com
To: cygwin AT cygwin DOT com
Subject: Re: /usr/bin/install: accessing `//filesrv/chj//.bashrc': Permission denied
Message-ID: <20060509081436.GH18330@ns1.anodized.com>
References: <5460e3330605072316j36598c76g40238223a9022fc6 AT mail DOT gmail DOT com> <5460e3330605090011h56a440dw338108ecea410c0d AT mail DOT gmail DOT com> <5460e3330605090044u40134e1ek864a4b810c0e9d1e AT mail DOT gmail DOT com> <1d3a88250605090102l316a12e8l412f023d6319624a AT mail DOT gmail DOT com>
Mime-Version: 1.0
In-Reply-To: <1d3a88250605090102l316a12e8l412f023d6319624a@mail.gmail.com>
User-Agent: Mutt/1.5.11
X-Assp-Spam-Prob: 0.00000
X-Assp-Whitelisted: Yes
X-Assp-Envelope-From: clayne AT ns1 DOT anodized DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

Don't try to get shares working like that through sshd. You'll be missing hair
afterwards.

Specify the share as a mount point with mount.
And then add your .bashrc:

if ! ls /mount_point/. 2>&1 >/dev/null; then
	/c/WINDOWS/system32/net USE /USER:username '\\share' password
fi

Yep, about as secure as you can chmod it, but that's life with windows.

-cl

On Tue, May 09, 2006 at 10:02:03AM +0200, Lloeki wrote:
> >
> >so I guess this is really about shares...
> >
> 
> It's not really about shares, it's more about the user sshd runs
> under, and which happens to be sent to the share auth system.
> 
> Lloeki

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