X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-0.5 required=5.0	tests=AWL,BAYES_00,RCVD_NUMERIC_HELO,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Andrew DeFaria <Andrew@DeFaria.com>
Subject: Re: Accessing SMB shares without explicit mounting
Date: Sun, 08 Aug 2010 13:26:52 -0700
Lines: 47
Message-ID: <i3n3ue$ukj$1@dough.gmane.org>
References: <20100808094231.176859z0vd0n1j3r@topdeck.tinsleyviaduct.com>	<4C5EDAEF.2080408@bopp.net> <20100808204054.75014yqiimrcvfie@topdeck.tinsleyviaduct.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.8) Gecko/20100802 Lightning/1.0b2pre Thunderbird/3.1.2
In-Reply-To: <20100808204054.75014yqiimrcvfie@topdeck.tinsleyviaduct.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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 08/08/2010 12:40 PM, Phil Reynolds wrote:
> Quoting "Jeremy Bopp" <jeremy@bopp.net>:
>
>> It sounds like your Samba configuration requires authentication in order
>> to access this share.  Are you able to access the share as
>> \\server\share using the Windows file explorer without first mapping the
>> share to a drive or authenticating in some other way?  Cygwin uses
>> Windows to handle this sort of operation, so if Windows can't access the
>> share without authentication, neither can Cygwin.
>>
>> If authentication is required, you'll either need to map the share to a
>> drive letter or reconfigure your Samba share to allow guests to have
>> read and possibly write access depending on your needs.
>
> Thank you - this has pointed me in the right direction...
>
> The main problem I've got now is how to allow write access to the 
> share from this scenario without allowing it from outside... but I am 
> working on that.
>
Might you be able to do something like:

net use \\server\share /user:[<domain>\]<username> <password>

To access the share supplying the username and password so that you can 
then use the UNC path proper? For example:

Pluto:net use \\\\jupiter\\Video /user:<username> <password>
The command completed successfully.

Pluto:net use
New connections will not be remembered.


Status       Local     Remote                    Network

-------------------------------------------------------------------------------
OK                     \\jupiter\Video           Microsoft Windows Network
The command completed successfully.

Pluto:
-- 
Andrew DeFaria <http://defaria.com>
If an orange is orange, why isn't a lime called a green or a lemon 
called a yellow?


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

