Not allowed to CWD

michelg

2008-08-06 13:32:36

Hi,

It appears that a CWD command is automatically sent after the PWD :

“(…) [12:20:19] PWD
[12:20:20] 257 "'DIRSYST.'" is working directory.

[12:20:42] CWD 'DIRSYST'

[12:20:43] 250 "DIRSYST." is the working directory name prefix.
[12:20:43] PWD
[12:20:43] 257 "'DIRSYST.'" is working directory. (…)”

I’m not allowed to send a CWD command on the distant server I use.

How is it possible to stop the automatic sending of this command, please ?

Michel

mb

2008-08-06 13:36:07

Hello Michel ..

Can you post the complete log?

Thank you
Regards,
Mat

michelg

2008-08-06 14:34:54

Hi Mat,

Here it is :

"[12:20:17] Résolution du nom d'hôte "xxxxxxxxx"
[12:20:17] Connexion à xxxxxxxx Port: xx
[12:20:17] Connecté à xxxxxxxxx
[12:20:18] 220-FTPD1 IBM FTP CS V1R7 at xxxxxxxxxxxxx, 10:20:26 on 2008-08-06.
[12:20:18] 220 Connection will close if idle for more than 5 minutes.
[12:20:18] USER dirsyst
[12:20:18] 331 Send password please.
[12:20:18] PASS (caché)
[12:20:19] 230 DIRSYST is logged on. Working directory is "DIRSYST.".
[12:20:19] SYST
[12:20:19] 215 MVS is the operating system of this server. FTP Server is running on z/OS.
[12:20:19] Type de serveur détecté: MVS
[12:20:19] FEAT
[12:20:19] 211 no Extensions supported
[12:20:19] TYPE I
[12:20:19] 200 Representation type is Image
[12:20:19] REST 0
[12:20:19] 504 Restart requires Block or Compressed transfer mode.
[12:20:19] PWD
[12:20:20] 257 "'DIRSYST.'" is working directory.
[12:20:42] CWD 'DIRSYST'
[12:20:43] 250 "DIRSYST." is the working directory name prefix.
[12:20:43] PWD
[12:20:43] 257 "'DIRSYST.'" is working directory.
[12:20:43] SIZE xxxxxxxxxxxxxxxxxx
[12:20:43] 501 command aborted -- FTP server not configured for SIZE
[12:20:43] MDTM xxxxxxxxxxxxxxxxxx
[12:20:43] 501 command aborted -- FTP server not configured for MDTM
[12:20:43] STAT xxxxxxxxxxxxxxxxxxx
[12:20:43] 504 STAT file-identifier: not implemented
[12:20:44] CWD 'DIRSYST'
[12:20:44] 250 "DIRSYST." is the working directory name prefix.
[12:20:44] PWD
[12:20:44] 257 "'DIRSYST.'" is working directory.
[12:20:44] TYPE A
[12:20:44] 200 Representation type is Ascii NonPrint
[12:20:44] Ignore les options de LIST.
[12:20:44] PASV
[12:20:45] 227 Entering Passive Mode (xxxxxxxxxxxxx)
[12:20:45] Ouvre une connexion de données vers xxxxxxxxxxxx Port: xxxx
[12:20:45] LIST
[12:20:45] 125 List started OK
[12:20:45] 452 octets transférés. (1,57 Ko/s) (280 ms)
[12:20:45] 250 List completed successfully.
[12:20:45] L'opération a été ajoutée à la file de transfert. Vérifiez la file de transfert pour voir son état.
[12:21:16] CWD 'DIRSYST'
[12:21:16] 250 "DIRSYST." is the working directory name prefix.
[12:21:16] PWD
[12:21:16] 257 "'DIRSYST.'" is working directory.
[12:21:16] NOOP
[12:21:16] 200 OK
[12:21:24] CWD 'DIRSYST'
[12:21:24] 250 "DIRSYST." is the working directory name prefix.
[12:21:24] PWD
[12:21:24] 257 "'DIRSYST.'" is working directory.
[12:21:24] MDTM xxxxxxxxxxxxxxxxxxxxx
[12:21:24] 501 command aborted -- FTP server not configured for MDTM
[12:21:41] RNFR 'xxxxxxxxxxxxxxxxxxxxxxxx'
[12:21:42] 350 RNFR accepted. Please supply new name for RNTO.
[12:21:42] RNTO 'xxxxxxxxxxxxxxxxx'
[12:21:42] 250 xxxxxxxxxxxxxxxxx renamed to yyyyyyyyyyyyyyyy
[12:21:57] QUIT
[12:21:57] La client a fermé la connexion."

mb

2008-08-06 14:52:23

Thank you.

I'm wondering why you aren't allowed to send the CWD? I can't find an error/problem in the log.

Regards,
Mat

michelg

2008-08-06 15:09:02

There's no error in the log, but it rings an alarm on the distant server :

"08214 16:58:37.39 STC02429 00000291 FTCHKCMD COMM USER
dirsyst
08214 16:58:37.54 STC02429 00000291 FTCHKCMD COMM DIRSYST PASS
££££££££
08214 16:58:37.54 STC02429 00000080 FTCHKPWD PASS DIRSYST ££££££££
08214 16:58:37.77 STC02429 00000291 FTCHKCMD COMM DIRSYST SYST
08214 16:58:37.92 STC02429 00000291 FTCHKCMD COMM DIRSYST FEAT
08214 16:58:38.07 STC02429 00000291 FTCHKCMD COMM DIRSYST TYPE I
08214 16:58:38.21 STC02429 00000291 FTCHKCMD COMM DIRSYST REST 0
08214 16:58:38.36 STC02429 00000291 FTCHKCMD COMM DIRSYST PWD
08214 16:58:38.51 STC02429 00000291 FTCHKCMD COMM DIRSYST CWD
/DIRSYST
08214 16:58:38.58 STC00486 00000080 NET-RES-0001 3 à PRODNET à PB SECURITE
FTP SUR USER DIRSYST"

("PB SECURITE" means "Security Problem")

As I need to log there for my job, I definetly don't want to be banned from there.

That's why I need not to send that CWD

Regards,

Michel

mb

2008-08-06 15:16:02

Can you please install the latest version of SmartFTP and try again:
https://www.smartftp.com/download

Thank you. If the problem persists please post the log again.

Regards,
Mat

michelg

2008-08-06 15:29:28

Could you please tell me if the latest version of SmartFTP is different of mine (v3.0.1017.1 Pro)

I can't make tries like that on that server. They're going to ban me.

By the way. May be it's irrelevant, but could it be that this problem has something to do with the fact that I did install SmartFTP on another profile of Vista that the one I'm using today (the license key is on that new profile) ?

Regards,

Michel

mb

2008-08-06 15:37:25

Hello ..

Yes the version is different.

Regards,
Mat

michelg

2008-08-11 14:27:59

Hi,

I did download and install the new version.

The same thing happened, exactly the same.

I tried to install it on my working profile instead on the one it where first, but nothing changed.

Do you think it's possible not to send that CWD command with SmartFTP, or not ?

Regards,

Michel

mb

2008-08-11 14:39:12

Please post the complete log.

Thank you
Regards,
Mat

michelg

2008-08-11 14:53:26

As I saw it was the same as the other day, I didn't keep it.

M

mb

2008-08-11 15:04:12

Please try it again and post the complete log.

Regards,
Mat

michelg

2008-08-11 15:41:09

[17:20:17] Résolution du nom d'hôte "xxxxxxxxx"
[17:20:17] Connexion à xxxxxxxx Port: xx
[17:20:17] Connecté à xxxxxxxxx
[17:20:18] 220-FTPD1 IBM FTP CS V1R7 at xxxxxxxxxxxxx, 17:20:26 on 2008-08-11.
[17:20:18] 220 Connection will close if idle for more than 5 minutes.
[17:20:18] USER dirsyst
[17:20:18] 331 Send password please.
[17:20:18] PASS (caché)
[17:20:19] 230 DIRSYST is logged on. Working directory is "DIRSYST.".
[17:20:19] SYST
[17:20:19] 215 MVS is the operating system of this server. FTP Server is running on z/OS.
[17:20:19] Type de serveur détecté: MVS
[17:20:19] FEAT
[17:20:19] 211 no Extensions supported
[17:20:19] TYPE I
[17:20:19] 200 Representation type is Image
[17:20:19] REST 0
[17:20:19] 504 Restart requires Block or Compressed transfer mode.
[17:20:19] PWD
[17:20:20] 257 "'DIRSYST.'" is working directory.
[17:20:42] CWD 'DIRSYST'
[17:20:43] 250 "DIRSYST." is the working directory name prefix.
[17:20:43] PWD
[17:20:43] 257 "'DIRSYST.'" is working directory.
[17:20:43] SIZE xxxxxxxxxxxxxxxxxx
[17:20:43] 501 command aborted -- FTP server not configured for SIZE
[17:20:43] MDTM xxxxxxxxxxxxxxxxxx
[17:20:43] 501 command aborted -- FTP server not configured for MDTM
[17:20:43] STAT xxxxxxxxxxxxxxxxxxx
[17:20:43] 504 STAT file-identifier: not implemented
[17:20:44] CWD 'DIRSYST'
[17:20:44] 250 "DIRSYST." is the working directory name prefix.
[17:20:44] PWD
[17:20:44] 257 "'DIRSYST.'" is working directory.
[17:20:44] TYPE A
[17:20:44] 200 Representation type is Ascii NonPrint
[17:20:44] Ignore les options de LIST.
[17:20:44] PASV
[17:20:45] 227 Entering Passive Mode (xxxxxxxxxxxxx)
[17:20:45] Ouvre une connexion de données vers xxxxxxxxxxxx Port: xxxx
[17:20:45] LIST
[17:20:45] 125 List started OK
[17:20:45] 762 octets transférés. (1,46 Ko/s) (522 ms)
[17:20:45] 250 List completed successfully.
[17:20:45] L'opération a été ajoutée à la file de transfert. Vérifiez la file de transfert pour voir son état.
[17:21:16] CWD 'DIRSYST'
[17:21:16] 250 "DIRSYST." is the working directory name prefix.
[17:21:16] PWD
[17:21:16] 257 "'DIRSYST.'" is working directory.
[17:21:16] NOOP
[17:21:16] 200 OK
[17:21:24] CWD 'DIRSYST'
[17:21:24] 250 "DIRSYST." is the working directory name prefix.
[17:21:24] PWD
[17:21:24] 257 "'DIRSYST.'" is working directory.
[17:21:24] MDTM xxxxxxxxxxxxxxxxxxxxx
[17:21:24] 501 command aborted -- FTP server not configured for MDTM
[17:21:41] RNFR 'xxxxxxxxxxxxxxxxxxxxxxxx'
[17:21:42] 350 RNFR accepted. Please supply new name for RNTO.
[17:21:42] RNTO 'xxxxxxxxxxxxxxxxx'
[17:21:42] 250 xxxxxxxxxxxxxxxxx renamed to yyyyyyyyyyyyyyyy
[17:21:57] QUIT
[17:21:57] La client a fermé la connexion.

mb

2008-08-11 15:49:18

Hello ..

The log is incomplete (it misses the smartftp version). Please post the system information from the menu: Help->About "System Information"

Thank you
Regards,
Mat

michelg

2008-08-11 15:52:14

+- System -----------------------------
Microsoft Windows Vista Business Edition
(Build 6000)

CPU Speed : 2166 MHz
Total Memory : 2045 MB
Free Memory : 816 MB

+- SmartFTP ---------------------------
Version : 3.0.1021.12
Time Stamp : 2008-08-06 16:48:44
Platform : x86
Id : 400062271
Days in use : 37

+- Application DLL --------------------
sfFTPLib.dll : 1.5.13.41
sfFavorites.dll : 1.0.17.12
sfFavoritesShellExtension.dll : 1.0.1.13
sfTransferQueue.dll : 1.0.14.12
sfFTPShellExtension.dll : 1.0.12.12
SmartFTPPS.dll : 3.0.1021.12

+- Language ---------------------------
SmartFTP.exe : 3.0.1021.12

+- Internet Explorer ------------------
Version : 7.0.6000.16681

+- Winsock ----------------------------
Winsock : 2.2

mb

2008-08-11 15:58:34

Thank you.

michelg

2008-08-11 16:01:01

You're welcome.

MG

mb

2008-08-14 13:12:19

Working on a fix for this.

michelg

2008-08-14 13:14:35

Thank you.

MG

mb

2008-08-16 14:20:11

Hello ..

Please try it again with the latest version:
https://www.smartftp.com/download

I have implemented a fix for your problem.

Regards,
Mat

michelg

2008-08-22 21:02:20

Hi Mat,

I've installed your latest version and tried it.
I didn't see any CWD on my log, but my correspondant warned me that there was still one left (16:07:51.02). I asked for their log. It's here, just bellow mine.

Best regards,

Michel


My log :

[16:06:20] SmartFTP v3.0.1021.15
[16:06:23] Resolving host name "100.1.1.1"
[16:06:23] Connecting to 100.1.1.1 Port: 33
[16:06:23] Connected to 100.1.1.1.
[16:06:23] 220-FTPD1 IBM FTP CS V1R7 at mpvmvs07.SERVEUR.net, 14:06:34 on 2008-08-20.
[16:06:24] 220 Connection will close if idle for more than 5 minutes.
[16:06:24] USER IDENTIFIANT
[16:06:24] 331 Send password please.
[16:06:24] PASS (hidden)
[16:06:25] 230 IDENTIFIANT is logged on. Working directory is "IDENTIFIANT.".
[16:06:25] SYST
[16:06:25] 215 MVS is the operating system of this server. FTP Server is running on z/OS.
[16:06:25] Detected Server Type: MVS
[16:06:25] TYPE I
[16:06:25] 200 Representation type is Image
[16:06:25] REST 0
[16:06:25] 504 Restart requires Block or Compressed transfer mode.
[16:06:25] PWD
[16:06:26] 257 "'IDENTIFIANT.'" is working directory.
[16:06:26] TYPE A
[16:06:26] 200 Representation type is Ascii NonPrint
[16:06:26] Ignoring LIST options.
[16:06:26] PASV
[16:06:26] 227 Entering Passive Mode (100,1,1,1,10,27)
[16:06:26] Opening data connection to 100.1.1.1 Port: 2987
[16:06:26] LIST
[16:06:27] 125 List started OK
[16:06:27] 452 bytes transferred. (1,74 Ko/s) (253 ms)
[16:06:27] 250 List completed successfully.
[16:07:35] TYPE I
[16:07:36] 200 Representation type is Image
[16:07:36] SIZE FILE.FILE.FILE.WORK
[16:07:36] 501 command aborted -- FTP server not configured for SIZE
[16:07:36] MDTM FILE.FILE.FILE.WORK
[16:07:36] 501 command aborted -- FTP server not configured for MDTM
[16:07:36] STAT FILE.FILE.FILE.WORK
[16:07:36] 504 STAT file-identifier: not implemented
[16:07:36] TYPE A
[16:07:36] 200 Representation type is Ascii NonPrint
[16:07:36] Ignoring LIST options.
[16:07:36] PASV
[16:07:37] 227 Entering Passive Mode (100,1,1,1,10,10)
[16:07:37] Opening data connection to 100.1.1.1 Port: 2937
[16:07:37] LIST
[16:07:37] 125 List started OK
[16:07:37] 452 bytes transferred. (2,41 Ko/s) (183 ms)
[16:07:37] 250 List completed successfully.
[16:07:37] The operation has been added to the Transfer Queue. Check the Transfer Queue for the status.
[16:08:14] TYPE I
[16:08:14] 200 Representation type is Image
[16:08:14] SIZE FILE.FILE.FILE.WORK
[16:08:14] 501 command aborted -- FTP server not configured for SIZE
[16:08:14] MDTM FILE.FILE.FILE.WORK
[16:08:15] 501 command aborted -- FTP server not configured for MDTM
[16:08:34] RNFR 'IDENTIFIANT.FILE.FILE.FILE.WORK'
[16:08:35] 350 RNFR accepted. Please supply new name for RNTO.
[16:08:35] RNTO 'IDENTIFIANT.ZJ.PROD.ABOREQ'
[16:08:35] 250 IDENTIFIANT.FILE.FILE.FILE.WORK renamed to IDENTIFIANT.FILE.FILE.FILE.WORK

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++

Their log :

S007 08233 16:06:34.20 STC00480 00000080 +FTCHKIP CONN 100.100.1.100
S007 08233 16:06:34.83 STC07396 00000291 FTCHKCMD COMM USER IDENTIFIANT
S007 08233 16:06:35.43 STC07396 00000291 FTCHKCMD COMM IDENTIFIANT PASS ££££££££
S007 08233 16:06:35.43 STC07396 00000080 FTCHKPWD PASS IDENTIFIANT ££££££££
S007 08233 16:06:35.78 STC07396 00000291 FTCHKCMD COMM IDENTIFIANT SYST
S007 08233 16:06:36.06 STC07396 00000291 FTCHKCMD COMM IDENTIFIANT TYPE I
S007 08233 16:06:36.23 STC07396 00000291 FTCHKCMD COMM IDENTIFIANT REST 0
S007 08233 16:06:36.46 STC07396 00000291 FTCHKCMD COMM IDENTIFIANT PWD
S007 08233 16:06:37.20 STC07396 00000291 FTCHKCMD COMM IDENTIFIANT TYPE A
S007 08233 16:06:37.37 STC07396 00000291 FTCHKCMD COMM IDENTIFIANT PASV
S007 08233 16:06:37.57 STC07396 00000291 FTCHKCMD COMM IDENTIFIANT LIST
S007 08233 16:07:46.47 STC07396 00000291 FTCHKCMD COMM IDENTIFIANT TYPE I
S007 08233 16:07:46.65 STC07396 00000291 FTCHKCMD COMM IDENTIFIANT SIZE FILE.FILE.FILE.WORK
S007 08233 16:07:46.82 STC07396 00000291 FTCHKCMD COMM IDENTIFIANT MDTM FILE.FILE.FILE.WORK
S007 08233 16:07:46.98 STC07396 00000291 FTCHKCMD COMM IDENTIFIANT STAT FILE.FILE.FILE.WORK
S007 08233 16:07:47.42 STC07396 00000291 FTCHKCMD COMM IDENTIFIANT TYPE A
S007 08233 16:07:47.61 STC07396 00000291 FTCHKCMD COMM IDENTIFIANT PASV
S007 08233 16:07:47.80 STC07396 00000291 FTCHKCMD COMM IDENTIFIANT LIST
S007 08233 16:07:49.44 STC00480 00000080 +FTCHKIP CONN 100.100.1.100
S007 08233 16:07:49.97 STC07398 00000291 FTCHKCMD COMM USER IDENTIFIANT
S007 08233 16:07:50.14 STC07398 00000291 FTCHKCMD COMM IDENTIFIANT PASS ££££££££
S007 08233 16:07:50.14 STC07398 00000080 FTCHKPWD PASS IDENTIFIANT ££££££££
S007 08233 16:07:50.38 STC07398 00000291 FTCHKCMD COMM IDENTIFIANT SYST
S007 08233 16:07:50.54 STC07398 00000291 FTCHKCMD COMM IDENTIFIANT TYPE I
S007 08233 16:07:50.70 STC07398 00000291 FTCHKCMD COMM IDENTIFIANT REST 0
S007 08233 16:07:50.86 STC07398 00000291 FTCHKCMD COMM IDENTIFIANT PWD
S007 08233 16:07:51.02 STC07398 00000291 FTCHKCMD COMM IDENTIFIANT CWD /IDENTIFIANT
S007 08233 16:07:51.02 STC00485 00000280 OPS3092H %FTPAUT01,J02(USER=IDENTIFIANT),J03(DSN=/IDENTIFIANT)
S007 08233 16:07:51.02 STC07398 00000080 SYFTPAUT AUTH Pas d'autorisation, User=IDENTIFIANT DSN=/IDENTIFIANT
S007 08233 16:07:51.04 STC00486 00000280 OPS3092H %FTPAUT02,J02(IDENTIFIANT ),J03(/IDENTIFIANT )
S007 08233 16:07:51.10 STC00485 00000280 OPS3092H FILE FICPTRDU NOT FREED, IS NOT ALLOCATED
S007 08233 16:07:51.13 STC00486 00000280 OPS1370H OPSOSF X'4000' X'0000' X'0000' NONE 300 OSC09
NET-RES-0001 3 àPRODNETà PB SECURITE FTP SUR USER IDENTIFIANT
S007 08233 16:07:51.13 STC00486 00000080 NET-RES-0001 3 àPRODNETà PB SECURITE FTP SUR USER IDENTIFIANT
S007 08233 16:07:51.14 STC00486 00000280 OPS3092H READY
S007 08233 16:08:20.70 STC07398 00000291 FTCHKCMD COMM IDENTIFIANT SIZE FILE.FILE.FILE.WORK
S007 08233 16:08:20.86 STC07398 00000291 FTCHKCMD COMM IDENTIFIANT MDTM FILE.FILE.FILE.WORK
S007 08233 16:08:21.01 STC07398 00000291 FTCHKCMD COMM IDENTIFIANT STAT FILE.FILE.FILE.WORK
S007 08233 16:08:21.16 STC07398 00000291 FTCHKCMD COMM IDENTIFIANT TYPE A
S007 08233 16:08:21.33 STC07398 00000291 FTCHKCMD COMM IDENTIFIANT PASV
S007 08233 16:08:21.50 STC07398 00000291 FTCHKCMD COMM IDENTIFIANT LIST
S007 08233 16:08:22.16 STC07398 00000291 FTCHKCMD COMM IDENTIFIANT TYPE I
S007 08233 16:08:22.33 STC07398 00000291 FTCHKCMD COMM IDENTIFIANT PASV
S007 08233 16:08:22.49 STC07398 00000291 FTCHKCMD COMM IDENTIFIANT STOR FILE.FILE.FILE.WORK
S007 08233 16:08:22.63 STC00100 00000080 CA-7.822 - (BLINE1 ) CLOSED
S007 08233 16:08:23.55 STC00480 00000080 +FTCHKIP CONN 100.1.1.1
S007 08233 16:08:23.63 STC07398 00000080 FTPSMFEX SMFX 100.100.1.100 IDENTIFIANT STOR SEQ IDENTIFIANT.ZJ.PROD.ABOREQ .WORK 250

mb

2008-08-22 21:05:36

Thank you for your feedback. Our fix seems to work as expected. Did you consider that your "correspondant" might be paranoid?

Regards,
Mat

michelg

2008-08-22 21:14:12

It's their job to be paranoïd.

"seems to work as expected"

Why is there still one CWD left ?
It seems to be hidden in the "transfer queue" process. Is it possible ?
Sorry to insist, but I'm not allowed to send any CWD on that server.

Regards,

Michel

mb

2008-08-22 21:22:23

Can you post the log from the transfer queue?

BTW: Security has nothing to do with an additional CWD command or not.

Thank you
Regards,
Mat

michelg

2008-08-22 21:30:14

I don't have the log from the transfer queue.

You already told me about CWD. I can't do anything to change the rules of that company, I can only respect them.

Regards,

Michel

mb

2008-08-22 21:33:39

To get the log:
1. Stop the transfer queue
2. Do the drag&drop operation
3. The file is added to the transfer queue
4. Double click the file in the transfer queue
5. The log view opens
6. Start the transfer queue
7. Post the log here

Regards,
Mat

michelg

2008-09-12 18:33:19

Hi Mat,

I haven't been allowed to post any CWD or to make anymore test on that server.

In order to keep on working without trouble, I did install Filezilla on another machine.

If you can't find and fix that CWD that hasn't to be sent, I'll keep on like this or find another solution with another software.

If you find a definitive fix, please let me know, I'll be happy to work with SmartFTP again (after all, this was why I bought it ...).


Regards,

Michel

mb

2008-09-12 21:20:09

Found the reason for the additional CWD command. Please try the latest version from:
https://www.smartftp.com/download

Regards,
Mat