public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Windows file share under Cygwin?
@ 2016-04-05 15:36 Deni
  2016-04-05 16:05 ` Andrey Repin
  2016-04-05 16:16 ` Corinna Vinschen
  0 siblings, 2 replies; 3+ messages in thread
From: Deni @ 2016-04-05 15:36 UTC (permalink / raw)
  To: cygwin

Hi, I have an issue with mounting Windows file share in Cygwin.

We have Windows file share which is using NFS to share content. I was 
assigned to install Cygwin on it so some application can connect over SFTP 
to that server.

Now they need to access the shared folder from that application and the 
app would pull data from that folder.The thing is that the folder is 
Windows shared folder (exmple; \\server\photos\). the current Windows 
users need to be able to connect to that share (it is mapped to their M 
drive) and the app need to connect to SFTP and pull the data from there.

My idea was to mount that NFS share in Cygwin and set it as /home 
directory so when the app connects, it automatically goes there.

My questions are: is this possible, and does anyone know any better 
solutions?

I am open for all suggestions.

Thank you.



--
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Windows file share under Cygwin?
  2016-04-05 15:36 Windows file share under Cygwin? Deni
@ 2016-04-05 16:05 ` Andrey Repin
  2016-04-05 16:16 ` Corinna Vinschen
  1 sibling, 0 replies; 3+ messages in thread
From: Andrey Repin @ 2016-04-05 16:05 UTC (permalink / raw)
  To: Deni, cygwin

Greetings, Deni!

> We have Windows file share which is using NFS to share content.

You're contradicting yourself.
Windows (CIFS) file sharing is not the same as Linux (NFS).
You can have NFS server on Windows (Cygwin for example provide one), but I see
no reason to do so.

> I was assigned to install Cygwin on it so some application can connect over
> SFTP to that server.

Install on what?

> Now they need to access the shared folder from that application and the 
> app would pull data from that folder.

> The thing is that the folder is Windows shared folder (exmple;
> \\server\photos\).

It is a Windows shared directory access semantics.
Which does not make much of a difference between CIFS and NFS shares.

> The current Windows users need to be able to connect to that share (it is
> mapped to their M drive) and the app need to connect to SFTP and pull the
> data from there.

> My idea was to mount that NFS share in Cygwin and set it as /home 
> directory so when the app connects, it automatically goes there.

> My questions are: is this possible, and does anyone know any better 
> solutions?

> I am open for all suggestions.

I'm open for clarifications.
Right now, your message is a total mess I dare not to make sense of.
And I'm not going to guess, what did you mean, either.
Please clearly explain
1. The resources available locally.
2. The resources available remotely.
3. The method used to access remote resources.
4. The intended goal of your endeavor.


-- 
With best regards,
Andrey Repin
Tuesday, April 5, 2016 18:52:47

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Windows file share under Cygwin?
  2016-04-05 15:36 Windows file share under Cygwin? Deni
  2016-04-05 16:05 ` Andrey Repin
@ 2016-04-05 16:16 ` Corinna Vinschen
  1 sibling, 0 replies; 3+ messages in thread
From: Corinna Vinschen @ 2016-04-05 16:16 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1739 bytes --]

On Apr  5 05:04, Deni wrote:
> Hi, I have an issue with mounting Windows file share in Cygwin.
> 
> We have Windows file share which is using NFS to share content. I was 
> assigned to install Cygwin on it so some application can connect over SFTP 
> to that server.
> 
> Now they need to access the shared folder from that application and the 
> app would pull data from that folder.The thing is that the folder is 
> Windows shared folder (exmple; \\server\photos\). the current Windows 
> users need to be able to connect to that share (it is mapped to their M 
> drive) and the app need to connect to SFTP and pull the data from there.

So I take it that you already have the Windows NFS client installed.
Is it the builtin MS NFS client or a third-party NFS client?

Either way, you already have access to the share from Cygwin either
using the /cygdrive/m path, or the //server/share path, which also
works OOTB.

> My idea was to mount that NFS share in Cygwin and set it as /home 
> directory so when the app connects, it automatically goes there.
> 
> My questions are: is this possible,

Yes.

>and does anyone know any better solutions?

Nobody really can answer *that* question.  It depends on what your users
are doing.  A local home dir always has speed advantages, so it's more
about your users complaining or not if you do it that way.

As for how to do that, I suggest to take a look into
https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping

If you utilize AD you can keep the maintainance centralized easily.


HTH,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-04-05 16:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-05 15:36 Windows file share under Cygwin? Deni
2016-04-05 16:05 ` Andrey Repin
2016-04-05 16:16 ` Corinna Vinschen

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).