delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT 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 AT cygwin DOT com |
From: | Andrew DeFaria <Andrew AT DeFaria DOT 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 DOT 176859z0vd0n1j3r AT topdeck DOT tinsleyviaduct DOT com> <4C5EDAEF DOT 2080408 AT bopp DOT net> <20100808204054 DOT 75014yqiimrcvfie AT topdeck DOT tinsleyviaduct DOT com> |
Mime-Version: | 1.0 |
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 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 |
On 08/08/2010 12:40 PM, Phil Reynolds wrote: > Quoting "Jeremy Bopp" <jeremy AT bopp DOT 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |