FTP 530-User cannot login - Win32 Unspecified error

Simon Bennetts 66 Reputation points
2025-06-16T14:54:00.1466667+00:00

Hi

We're moving all our resources from on-prem to Azure and my next one is a passive FTP site.

I've created a VM using Windows Server 2022 with IIS and FTP installed.

I want to enable FTP user isolation. We have a LocalUser folder in the ftproot and uploads below that and have give my myuser permission to it. When using filezilla locally, I am getting an unexpected error:

Command:	USER myuser
Response:	331 Password required
Command:	PASS *************
Response:	530-User cannot log in.
Response:	 Win32 error:   Unspecified error 
Response:	 Error details: An error occurred during the authentication process.
Response:	530 End
Error:	Critical error: Could not connect to server

Everything looks to be set up correctly.

Anyone had this and able to resolve?

Thanks
Simon

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,013 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Arko 4,150 Reputation points Microsoft External Staff Moderator
    2025-06-19T06:36:43.26+00:00

    Hello Simon Bennetts,

    Given that setup, the 530-User cannot log in error combined with the DCOM warning in the Event Viewer points to a permissions issue rather than a misconfiguration of the FTP site itself.

    I would suggest you verify few below mentioned points since you are using IIS Manager users for FTP

    First, make sure the IIS Management Service is installed and running. This service is required to support IIS Manager authentication. Then, allow the IIS Manager user access to the FTP site. In the FTP Authentication settings, make sure “IIS Manager Authentication” is enabled. If you’re not using Basic or Anonymous authentication, those can be disabled to avoid conflicts.
    Now, about the DCOM error you’re seeing that’s a known issue in some FTP setups and can prevent authentication from completing.

    To fix this, goto component services (dcomcnfg) and go to Computers > My Computer > DCOM Config.

    dcom

    Look for the application matching the CLSID in the Event Viewer warning.

    Go to Properties > Security tab, and under “Launch and Activation Permissions,” click “Edit.”

    Add NT AUTHORITY\SYSTEM and make sure it has both “Local Launch” and “Local Activation” permissions. Also check file system permissions for the folder. The IIS Manager user doesn’t map directly to a Windows account, but the FTP process still needs read/write access to the user’s folder. Usually, granting access to the IIS_IUSRS group or the Application Pool identity should cover this.
    After all the above is verified, restart both the FTP service and the IIS Management Service

    Restart-Service ftpsvc
    Restart-Service wmsvc
    

    Then try connecting again using FileZilla. Let me know how it goes. Thanks

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.