all groups > iis ftp > april 2005 >
You're in the

iis ftp

group:

GET hidden_file returns 550 and 426 status codes


GET hidden_file returns 550 and 426 status codes Andre Lombard
4/26/2005 4:29:06 PM
iis ftp:
QUESTION: How do I download hidden files via FTP from a server running IIS 6
FTP Service?

SCENARIO:
* New Windows 2003 Server installation with IIS and FTP installed (in other
words, all the default folder permissions, metabase configurations and site
properties are still set).
* Create 2 text files (test1.txt and test2.txt) in \inetpub\ftproot folder
* Make one file hidden, e.g. attrib +h \inetpub\ftproot\test1.txt
* using an ftp client that supports hidden files, establish anonymous FTP
connection to localhost (e.g. total command or WS_FTP)
* directory listing shows both files
* GET test2.txt succeeds (226 status code)
* GET test1.txt fails (550 status code, then 426 status code is also sent
(for the same request).
* Log file (%windir%\system32\LogFiles\MSFTPSVC1\exyymmdd.log) logs the
request and response of 550 and 426 that was sent. This indicates that the
problem is definately not with the FTP Client, but on the server.
* There is no AnnotateDirectories DWORD in
HKLM\System\CurrentControlSet\Services\MSFtpSvc\Parameters, but I find
mention of it when googling "IIS FTP hidden file". The purpose of this value
is for annotating folders, but I figured I'd try it because then FTP reads
from a hidden file. Adding this value and setting it to 1 does not make a
difference. Removed it again.
* Status Code 550 means "Requested action not taken. File unavailable (for
example, file not found, no access)."
* Status Code 426 means "The command opens a data connection to perform an
action, but that action is canceled, and the data connection is closed."

WORKAROUND:
* By using another FTP Server (e.g. BulletProof FTP), I'm able to serve
hidden files. However, I specifically want to know how to serve hidden files
using MS FTP Service.

RESOLUTION:
Re: GET hidden_file returns 550 and 426 status codes Bernard
5/1/2005 12:00:00 AM
I don't think IIS support request for hidden file, this apply to w3svc as
well.

--
Regards,
Bernard Cheah
http://www.tryiis.com/
http://support.microsoft.com/
http://www.msmvps.com/bernard/


[quoted text, click to view]

AddThis Social Bookmark Button