delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/12/22/09:36:11

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_THEBAT,KHOP_THREADED,SPF_SOFTFAIL
X-Spam-Check-By: sourceware.org
Date: Sat, 22 Dec 2012 18:30:22 +0400
From: Andrey Repin <anrdaemon AT freemail DOT ru>
Reply-To: Andrey Repin <cygwin AT cygwin DOT com>
Message-ID: <416804192.20121222183022@mtu-net.ru>
To: bartels <bartels AT mailme DOT ath DOT cx>, cygwin AT cygwin DOT com
Subject: Re: trouble accessing samba shares with spaces and/or parentheses
In-Reply-To: <50D580BA.6040701@mailme.ath.cx>
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> <50D580BA DOT 6040701 AT mailme DOT ath DOT cx>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

Greetings, bartels!

>> $ # \'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.

It'll ask you for credentials, if that would be necessary.
Or you can enter credentials beforehand, assuming you're using the same for
one remote system.
net use \\host\IPC$ * /user:<username>

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

Network drive letter assignment are per user session.

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

Because drive letters are the thing of past and left there for user's
convenience, not as a system necessity.

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

Grow up already and use centralized network authentication.

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

There should be no need for that.

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


--
WBR,
Andrey Repin (anrdaemon AT freemail DOT ru) 22.12.2012, <18:26>

Sorry for my terrible english...


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