Tamas Ionut
Tamas Ionut

Reputation: 4410

FTP website in IIS with anonymous authentication requires username and password

I have a FTP website in IIS 8 that I want to expose to public (non-authenticated visitors) that is configured using the following settings from here:

Whenever I try to connect to the website externally using the ftp://mysite.com address, I am always prompted with a dialog that says:

Authentication Required - The server ftp://mysite.com:21 requires a username and password

I've tried every credentials (even for the users that have read permissions to folder that the website is pointing to) and still nothing. Basic Authentication is disabled for the website.

How can I configure the FTP site in order to allow external read access for any visitor?

PS: it is okay even with a solution that implies Basic Authentication in place since I can provide the users with an account on the server for my purposes, but even with Basic Authentication enabled and providing the correct credentials, it failed to authenticate.

Regards, Ionut

Upvotes: 8

Views: 36349

Answers (6)

dejavu
dejavu

Reputation: 19

Changing NTFS permission by adding everyone to the folder with all permission solved the issue for me.

Upvotes: 0

Shogan Aversa-Druesne
Shogan Aversa-Druesne

Reputation: 339

Four things to check:

  1. FTP Authentication->Anonymous Authentication->Enable, then edit, User:IUSR Pass:<blank>
  2. FTP Authorization Rules->All Anonymous Users->Read
  3. FTP User Isolation->Do not isolate. Start in: FTP root directory

  4. Add the "IUSR" account to the root directory NTFS Security Permissions with Read, Read and Execute, and List Folder Contents.

Upvotes: 10

tomRedox
tomRedox

Reputation: 30463

I had this issue when I'd used a mapped drive path (T:\ in my case) as the 'Physical path' for my FTP site.

Changing to using the full drive path (D:\etc\etc) fixed it:

IIS Website Edit Site window showing Physical Path starting with D colon rather than using a mapped path

As I understand it that issue is caused by how Windows marries up permissions between a mapped directory and the actual physical directory it's mapping to.

Upvotes: 0

dns
dns

Reputation: 2815

You must add Anonymous Rule access.

Enable & add new rule for Anonymous access: FTP Authorization Rules > Add Allow Rule > All Anonymous Users

Upvotes: 1

B. Rodrigues
B. Rodrigues

Reputation: 59

I've had the same problem as you. I've solved it by giving NTFS default read permission to "Everyone" on the desired folder.

Upvotes: 4

lat3ncy
lat3ncy

Reputation: 166

Below is a pretty thorough write up on enabling Public/Anonymous FTP in Windows Server 2008 through 2012R2. I would double check your settings in the FTP Authentication section.

http://www.iis.net/configreference/system.applicationhost/sites/sitedefaults/ftpserver/security/authentication/anonymousauthentication

Upvotes: 2

Related Questions