From: Andrey Repin <anrdaemon@yandex.ru>
To: Mike Brown <brown@mrvideo.vidiot.com>, cygwin@cygwin.com
Subject: Re: Mounting a network share
Date: Mon, 02 Nov 2015 19:50:00 -0000 [thread overview]
Message-ID: <393296213.20151102224346@yandex.ru> (raw)
In-Reply-To: <20151102180623.GA13339@mrvideo.vidiot.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
next prev parent reply other threads:[~2015-11-02 19:50 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-01 21:02 Mike Brown
2015-11-02 1:50 ` Andrey Repin
2015-11-02 5:35 ` Mike Brown
2015-11-02 11:16 ` Corinna Vinschen
2015-11-02 16:18 ` Corinna Vinschen
2015-11-02 16:31 ` Roger Wells
2015-11-02 16:03 ` Mike Brown
2015-11-02 16:26 ` Corinna Vinschen
2015-11-02 18:06 ` Mike Brown
2015-11-02 19:50 ` Andrey Repin [this message]
2015-11-03 13:11 ` Corinna Vinschen
2015-11-02 23:37 ` Linda Walsh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=393296213.20151102224346@yandex.ru \
--to=anrdaemon@yandex.ru \
--cc=brown@mrvideo.vidiot.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).