This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Mounting a network share
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: Mike Brown <brown at mrvideo dot vidiot dot com>, cygwin at cygwin dot com
- Date: Mon, 2 Nov 2015 22:43:46 +0300
- Subject: Re: Mounting a network share
- Authentication-results: sourceware.org; auth=none
- References: <20151101210207 dot GA4736 at mrvideo dot vidiot dot com> <1046348344 dot 20151102044033 at yandex dot ru> <20151102160343 dot GC12487 at mrvideo dot vidiot dot com> <20151102162651 dot GB9730 at calimero dot vinschen dot de> <20151102180623 dot GA13339 at mrvideo dot vidiot dot com>
- Reply-to: cygwin at cygwin dot com
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 <resource>' 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