From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 65495 invoked by alias); 2 Nov 2015 19:50:13 -0000 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 Received: (qmail 65486 invoked by uid 89); 2 Nov 2015 19:50:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: Yes, score=5.2 required=5.0 tests=AWL,BAYES_95,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: smtp.ht-systems.ru Received: from smtp.ht-systems.ru (HELO smtp.ht-systems.ru) (78.110.50.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 02 Nov 2015 19:50:10 +0000 Received: from [95.165.144.62] (helo=darkdragon.lan) by smtp.ht-systems.ru with esmtpa (Exim 4.80.1) (envelope-from ) (Authenticated sender: postmaster@rootdir.org) id 1ZtL7B-0004Zj-U7 ; Mon, 02 Nov 2015 22:50:02 +0300 Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Mon, 02 Nov 2015 19:43:47 -0000 Date: Mon, 02 Nov 2015 19:50:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <393296213.20151102224346@yandex.ru> To: Mike Brown , cygwin@cygwin.com Subject: Re: Mounting a network share In-Reply-To: <20151102180623.GA13339@mrvideo.vidiot.com> References: <20151101210207.GA4736@mrvideo.vidiot.com> <1046348344.20151102044033@yandex.ru> <20151102160343.GC12487@mrvideo.vidiot.com> <20151102162651.GB9730@calimero.vinschen.de> <20151102180623.GA13339@mrvideo.vidiot.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg00047.txt.bz2 Greetings, Mike Brown! >> > > If you want to do it from Cygwin side, use fstab and don't use /cygdrive >> > > prefix. It is for automatic mounts ONLY. >> > >> > I went and found the Cygwin web page that describes fstab. What it doesn't >> > say is how to use it. >> >> It does: https://cygwin.com/cygwin-ug-net/using.html#mount-table > What I mean is that I was able to create an entry, but I have no idea how to > get the mount program to read the contents. Cygwin's fstab only accepts 'bind mounts' (in *NIX terms). The article Corinna mentioned clearly explains that. Another difference from *NIX is that it is read and interpreted by Cygwin core (cygwin1.dll) when a new process tree starts. >> > I have the following entry: >> > >> > 192.168.1.40:/Public /Public nfs noacl 0 0 >> ^^^^^^^^^^^^^^^^^^^^ >> >> This syntax isn't known in Windows. Use the same syntax as with SMB >> shares, just use forward slashes: >> >> //192.168.1.40/Public /Public foo binary 0 0 >> >> "noacl" has no meaning on NFS shares, btw. > No there no explantion on how to enter a user and password. Because there's no such place. The resource must be available to the user. Before we continue this discussion, I suggest to re-read the two paragraphs on the cygwin.com main page. What Cygwin is and it is not. You expect kernel OS functionality from a userland application. That's not how Cygwin works. Cygwin leverages the operating system functionality to create a level field for porting applications to Windows. And to your 'net use' issues, 'net help use' should have been your first stop. Yes, you can just call 'net use ' without specifying the name to simply authenticate yourself with the resource. Mind you, specifying a password in command line is always a bad idea. You never know, where that password would be stored or displayed in between terminal and the called application. -- With best regards, Andrey Repin Monday, November 2, 2015 22:33:09 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