delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/06/09/10:31:02

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <001d01c32e93$aa68f020$2000a8c0@kappy>
From: "Takashi Yano" <takashi DOT yano AT nifty DOT ne DOT jp>
To: <cygwin AT cygwin DOT com>
References: <001401c32dd7$dc721b30$2000a8c0 AT kappy> <3 DOT 0 DOT 5 DOT 32 DOT 20030608153754 DOT 0080fdb0 AT incoming DOT verizon DOT net>
Subject: Re: Problems on accessing Windows network resources.
Date: Mon, 9 Jun 2003 23:30:24 +0900
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165

Thank you for answering.

Igor wrote:
> If you log in without a password: according to the second paragraph of
> <http://cygwin.com/cygwin-ug-net/ntsec.html#NTSEC-RELEASE1.3.3>, 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 AT kappy ~]$ ftp localhost
Connected to kappy.
220-
220- Wow! I have found the ftp daemon! Let's see...
220-
220 kappy FTP server (GNU inetutils 1.3.2) ready.
Name (localhost:yano): yano
331 Password required for yano.
Password:
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. :-)

Thanks.

Takashi Yano.


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019