X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-3.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Andrew DeFaria Subject: Re: Windows Share Folder Problem Date: Sun, 10 May 2009 22:30:32 -0700 Lines: 56 Message-ID: References: <6662cc9a0905102133i7308b6f2xa6a3c0334c97269 AT mail DOT gmail DOT com> <6662cc9a0905102207k38591a74h15a80627e5836d27 AT mail DOT gmail DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit User-Agent: Thunderbird 2.0.0.21 (X11/20090409) In-Reply-To: <6662cc9a0905102207k38591a74h15a80627e5836d27@mail.gmail.com> X-Stationery: 0.4.8.14 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Neeraj Sahu wrote: > Hi All, > > I am new to the cygwin mailing list. This is my first email to the > community. I am going to present the seminar on Cygwin in my > organization.In that seminar I want to show you can access windows > shared folder of any PC from Cygwin. To demonstrate that I have tried > to mount that windows shared folder in cygwin but it didn't work. When > I have searched in google for it. I came to know that i need to > install "samba" on cygwin. > > But I don't know how to install samba on cygwin. Or is there any other > way using which I can access windows folder using cygwin ? > > Could you please help me out to resolve the issue ? There's no need to install Samba in Cygwin. In fact I don't think there's even a Samba package. A few concepts to understand... Windows Networking or the way that Windows shares filesystems over the network is through the SMB or Server Message Block protocol. When you are on Windows and you mount a remote share to a drive letter you are using SMB. Samba is "... a free software re-implementation of SMB/CIFS networking protocol , originally developed by Australian Andrew Tridgell ". IOW Samba is the Unix/Linux equivalent of "playing Windows (SMB) networking". Cygwin's already running on Windows so there's really no need to implement SMB - it's already there! And there's no really need to "mount" things really either - nor a need to take up a drive letter in order to access remote filesystems in Windows domains. So, in order to see the contents of the file named foo on the server myserver and share myshare you need only do: $ more //myserver/myshare/foo This does not mean that you can't access it through a drive letter, if you feel the need to mount it, you can do: $ net use X: \\\\myserver\\myshare $ more /cygdrive/x/foo # or $ more x:/foo Note the doubling of backslashes because bash uses backslash as an escape character. -- Andrew DeFaria If all the world is a stage, where is the audience sitting? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/