delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/12/22/04:43:43

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-3.2 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED
X-Spam-Check-By: sourceware.org
Message-ID: <50D580BA.6040701@mailme.ath.cx>
Date: Sat, 22 Dec 2012 10:43:22 +0100
From: bartels <bartels AT mailme DOT ath DOT cx>
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.11) Gecko/20121123 Icedove/10.0.11
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: trouble accessing samba shares with spaces and/or parentheses
References: <50D48C53 DOT 2080403 AT mailme DOT ath DOT cx> <20121221164750 DOT GE18188 AT calimero DOT vinschen DOT de> <50D495D5 DOT 2030104 AT mailme DOT ath DOT cx> <20121221171916 DOT GH18188 AT calimero DOT vinschen DOT de> <50D4A64D DOT 5040301 AT mailme DOT ath DOT cx> <kb29rf$suk$1 AT ger DOT gmane DOT org> <50D4AFA9 DOT 5070200 AT mailme DOT ath DOT cx> <kb2r99$hrc$1 AT ger DOT gmane DOT org>
In-Reply-To: <kb2r99$hrc$1@ger.gmane.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

On 12/22/2012 12:27 AM, Andrew DeFaria wrote:
>
> Or you can just do
>
> $ # \'s doubled because bash swallows them and net use requires them.
> $ net use \\\\<server>\\share

Okay, I did not know the letter could be ommitted.
>> More importantly, is it possible to mount a network share, using cygwin, so that it becomes visible/available in explorer?
> Again, no mounting is required. Open up Windows Explorer and type in the UNC (\\<server>\<share>) and there you are!

It would be that simple, if there were no credentials involved.


>> The scope of mounting seems to be limited to a process (tree). Every service must mount separately.
> That's not been my experience.
>> Or have I missed something?
> Might have. What have you tried? 

Simple:
1) Let user xx mount a share with 'Map network drive',
2) use ssh to login as xx AT machine and type 'net use': There are no entries in the list.

It's the same for the services. I can give you the one-liners.

Windoze seems to lack a system level mount, such as we see on *nix.

It can be argued that there is no fundamental problem with this. But in practice I now need to manage credentials and connect/disconnect in 
several places (i.e. services).

Some questions come to mind:

* Is there a way for the service to find out which shares are mounted by the user (and which credentials)?

* The (plaintext) credentials are known to the app. Can I use the windows vault in some way, via CredWrite() / CredRead() ?

- bartels



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019