X-Recipient: archive-cygwin@delorie.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@mailme.ath.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@cygwin.com
Subject: Re: trouble accessing samba shares with spaces and/or parentheses
References: <50D48C53.2080403@mailme.ath.cx> <20121221164750.GE18188@calimero.vinschen.de> <50D495D5.2030104@mailme.ath.cx> <20121221171916.GH18188@calimero.vinschen.de> <50D4A64D.5040301@mailme.ath.cx> <kb29rf$suk$1@ger.gmane.org> <50D4AFA9.5070200@mailme.ath.cx> <kb2r99$hrc$1@ger.gmane.org>
In-Reply-To: <kb2r99$hrc$1@ger.gmane.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

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

