From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19736 invoked by alias); 8 Aug 2010 20:27:11 -0000 Received: (qmail 19726 invoked by uid 22791); 8 Aug 2010 20:27:10 -0000 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 Received: from lo.gmane.org (HELO lo.gmane.org) (80.91.229.12) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 08 Aug 2010 20:27:05 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OiCST-0007rx-HS for cygwin@cygwin.com; Sun, 08 Aug 2010 22:27:01 +0200 Received: from 173.160.181.37 ([173.160.181.37]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 08 Aug 2010 22:27:01 +0200 Received: from Andrew by 173.160.181.37 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 08 Aug 2010 22:27:01 +0200 To: cygwin@cygwin.com From: Andrew DeFaria Subject: Re: Accessing SMB shares without explicit mounting Date: Sun, 08 Aug 2010 20:27:00 -0000 Message-ID: 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: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2010-08/txt/msg00185.txt.bz2 On 08/08/2010 12:40 PM, Phil Reynolds wrote: > Quoting "Jeremy Bopp" : > >> 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:[\] 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: 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 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