Re: Windows Share Folder Problem

2009-05-18 Thread Larry Hall (Cygwin)

On 05/16/2009, Neeraj Sahu wrote:

Is there any way to access that windows sharable folder using user id
and password but only with Linux command.


Be careful what you assume.  Cygwin's 'mount' has syntactic similarities
to the Linux/Unix 'mount' but is semanticly quite different.

There is no command-line facility in Cygwin which will perform the
function you are referring to here.

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?

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



Re: Windows Share Folder Problem

2009-05-16 Thread Neeraj Sahu
Hi,

Thanks for the reply !!!.
Now, I can access the windows sharable folder using this command:

net use Z: vm-webin\\d$ my_password /user:myself
cd /cygdrive/z

But this command is also available in Dos. So I can do the same thing
using dos also.

But in my cygwin presentation I want to show that you can access the
sharable PC folder using some linux command for ex: mount command.
Which is not available in windows dos command.

As in my previous post, you people suggested me some other solution to
access sharable window PC folder. For ex:

1.) cd //server_ip_address
2.) mount -f -b //server_ip_address/data/ /home/user/temp/

In the above two example I can access the sharable PC if and only if
there is no user id or password required.
Since we are working in the organization so to access sharable folder
I need to enter the user Id and password.

Is there any way to access that windows sharable folder using user id
and password but only with Linux command.


Thanks and Regards,
Neeraj Sahu

On Mon, May 11, 2009 at 5:03 PM, david sastre d.sastre.med...@gmail.com wrote:
 Hello there!

 I use this and works for me:

 net use Z: vm-webin\\d$ my_password /user:myself

 Then you can access the shared folder simply by

 cd /cygdrive/z

 Hope this is helpful. Good luck!

 2009/5/11, Neeraj Sahu neerajsahu2...@gmail.com:
 Hi Andy,

 Thanks a lot for your help.

 I have successfully accessed the sharable PC using command cd
 //server_ip_address
 But to access the shared folder it is saying permission denied.
 Actually, that shared folder  folder have user id and password.

 How Can I give user id and password using cd command to access that
 window sharable folder ?

 --
 Thanks  Regards,
 Neeraj Sahu


 On Mon, May 11, 2009 at 11:07 AM, Andy Koppe andy.ko...@gmail.com wrote:
 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.

 No need to mount anything or install samba: windows shares can be
 accessed using the familiar Windows syntax, only with Unix slashes
 rather than DOS backslashes:

 //server/share/path_to_file

 Actually you can use backslashes too, but then the filename needs to be
 quoted:

 \\server\share\path_to_file

 Good luck with the seminar!

 Andy

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



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



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





-- 
Thanks  Regards,
Neeraj Sahu

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



Re: Windows Share Folder Problem

2009-05-11 Thread Neeraj Sahu
Hi Andy,

Thanks a lot for your help.

I have successfully accessed the sharable PC using command cd
//server_ip_address
But to access the shared folder it is saying permission denied.
Actually, that shared folder  folder have user id and password.

How Can I give user id and password using cd command to access that
window sharable folder ?

-- 
Thanks  Regards,
Neeraj Sahu


On Mon, May 11, 2009 at 11:07 AM, Andy Koppe andy.ko...@gmail.com wrote:
 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.

 No need to mount anything or install samba: windows shares can be
 accessed using the familiar Windows syntax, only with Unix slashes
 rather than DOS backslashes:

 //server/share/path_to_file

 Actually you can use backslashes too, but then the filename needs to be 
 quoted:

 \\server\share\path_to_file

 Good luck with the seminar!

 Andy

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



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



Re: Windows Share Folder Problem

2009-05-11 Thread david sastre
Hello there!

I use this and works for me:

net use Z: vm-webin\\d$ my_password /user:myself

Then you can access the shared folder simply by

cd /cygdrive/z

Hope this is helpful. Good luck!

2009/5/11, Neeraj Sahu neerajsahu2...@gmail.com:
 Hi Andy,

 Thanks a lot for your help.

 I have successfully accessed the sharable PC using command cd
 //server_ip_address
 But to access the shared folder it is saying permission denied.
 Actually, that shared folder  folder have user id and password.

 How Can I give user id and password using cd command to access that
 window sharable folder ?

 --
 Thanks  Regards,
 Neeraj Sahu


 On Mon, May 11, 2009 at 11:07 AM, Andy Koppe andy.ko...@gmail.com wrote:
 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.

 No need to mount anything or install samba: windows shares can be
 accessed using the familiar Windows syntax, only with Unix slashes
 rather than DOS backslashes:

 //server/share/path_to_file

 Actually you can use backslashes too, but then the filename needs to be
 quoted:

 \\server\share\path_to_file

 Good luck with the seminar!

 Andy

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



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



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



Windows Share Folder Problem

2009-05-10 Thread Neeraj Sahu
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 ?

--
Thanks  Regards,
Neeraj Sahu




--
Regards,
Neeraj Sahu

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



Re: Windows Share Folder Problem

2009-05-10 Thread Andrew DeFaria
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
http://en.wikipedia.org/wiki/Server_Message_Block protocol. When you
are on Windows and you mount a remote share to a drive letter you are
using SMB.

Samba http://en.wikipedia.org/wiki/Samba_%28software%29 is ... a free
software http://en.wikipedia.org/wiki/Free_software re-implementation
of SMB/CIFS http://en.wikipedia.org/wiki/Server_Message_Block
networking http://en.wikipedia.org/wiki/Computer_networking protocol
http://en.wikipedia.org/wiki/Protocol_%28computing%29, originally
developed by Australian Andrew Tridgell
http://en.wikipedia.org/wiki/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 http://defaria.com
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/



Re: Windows Share Folder Problem

2009-05-10 Thread Andy Koppe
 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.

No need to mount anything or install samba: windows shares can be
accessed using the familiar Windows syntax, only with Unix slashes
rather than DOS backslashes:

//server/share/path_to_file

Actually you can use backslashes too, but then the filename needs to be quoted:

\\server\share\path_to_file

Good luck with the seminar!

Andy

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