This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problems on accessing Windows network resources.

Thank you for answering.

Igor wrote:
> If you log in without a password: according to the second paragraph of
> <>, you
> cannot access network shares that require authentication from a
> passwordless login session.  There is no way to resolve this.  However,

I understood. I am sorry to have pointed out that is already written in the document.

> you should be able to authenticate using the "net use" command with a
> "/user" flag.

This also fails with error message:
"System error 1312 has occurred. A specified logon session does not exist.  It may already have been terminated."
This seems to be because "a process started under SYSTEM account can't access network shares which require authentication." :-)

> I'm not sure what the ftp problem is.  More detail might help.

To reproduce this problem,
1) Share a directory "shared1" on "computer1" set same password with a local account.
2) Be sure that \\computer1\shared1 can be accessed with no password query from the local account.
3) Login to the local account using ftp.
4) Access to \\computer1\shared1 from ftp login fails except for the first access after logging in as follows.

[yano@kappy ~]$ ftp localhost
Connected to kappy.
220- Wow! I have found the ftp daemon! Let's see...
220 kappy FTP server (GNU inetutils 1.3.2) ready.
Name (localhost:yano): yano
331 Password required for yano.
230- CYGWIN_NT-5.0 kappy 1.3.22(0.78/3/2) 2003-03-18 09:20 i686 unknown Cygwin
230 User yano logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd //computer1/shared1/
250 CWD command successful.
ftp> get file1
200 PORT command successful.
150 Opening BINARY mode data connection for 'file1' (230454 bytes).
226 Transfer complete.
230454 bytes received in 0.855 seconds (269536 bytes/s)
ftp> get file1
200 PORT command successful.
550 file1: Permission denied.
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for '/bin/ls'.
/bin/ls: .: No such file or directory
226 Transfer complete.
ftp> quit
221 Goodbye.

As shown above, although the first access "get file1" succeeded, the subsequent "get file1" and "ls" failed.

Pierre wrote:
> Actually I am attaching what should be a fix, but it's only tested on 
> WinME. Feedback welcome.

It has been verified that this test version works fine as well as version 1.7-1.
I'm looking forward to new release. :-)


Takashi Yano.

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]