Microsoft KB Archive/200475

= Error message in IIS: "530 User  cannot log in. Login failed." =

Article ID: 200475

Article Last Modified on 12/3/2007

-

APPLIES TO


 * Microsoft Internet Information Services 6.0
 * Microsoft Internet Information Services 5.0
 * Microsoft Internet Information Server 4.0

-



This article was previously published under Q200475



We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 6.0 running on Microsoft Windows Server 2003. IIS 6.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site:

http://www.microsoft.com/technet/security/prodtech/IIS.mspx



SYMPTOMS
When you use the FTP utility to connect to an FTP site, you receive the following error message:

530 User cannot log in.

Login failed.



CAUSE
This problem occurs when one of the following scenarios is true:
 * The Allow only anonymous connections security setting has been turned on in the Microsoft Management Console (MMC).
 * The username does not have the Log on locally permission in User Manager.
 * The username does not have the Access this computer from the network permission in User Manager.
 * The Domain Name was not specified together with the username (in the form of ).



Resolution 1
Warning When you configure the site to require a user name and password, credentials and data are sent across the network in plain text and are not encrypted in any way. Information is susceptible to interception. After you clear the Allow only anonymous connections check box, we recommend that you use Secure Socket Layer (SSL) for your FTP site.

To clear the Allow only anonymous connections security check box, follow these steps:
 * 1) Start the Internet Service Manager (ISM) ISM loads the Internet Information Server (IIS) snap-in for the Microsoft Management Console (MMC).
 * 2) Right-click the default FTP site folder, and then click Properties.
 * 3) On the Security Accounts tab, clear the Allow only anonymous connections security check box.
 * 4) Click OK.

Resolution 2
To give the username the "Log On Locally" permission, follow these steps:

Windows NT 4.0 servers

 * 1) In the Administrative Tools group, click User Manager for Domains.

Note If the username is not a member of the default domain opened by User Manager, click the User menu, and then click Domain to specify the correct domain. If the username is a member of the local computer's user list, type \\ in the Domain text box.
 * 1) On the Policies menu, click User Rights.
 * 2) In the Rights drop-down list, click Log on Locally.
 * 3) Click Add, and add the appropriate username (or user group).
 * 4) Click OK two times.

Windows 2000 servers
To configure the Log on locally right on a stand-alone server, follow these steps:  In the Microsoft Management Console (MMC), open the Local Computer Policy snap-in. To do this, follow these steps:  Click Start, type MMC, and then click OK. Click Console, click Add/Remove Snap-in, and then click Add. Select Group Policy, and then click Add. Make sure that the Group Policy object says Local Computer, and then click Finish.</li> Click Close, and then click OK.</li></ol> </li> Grant users or groups the Log on locally right. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> Expand the following path in the MMC:

Local Computer Policy\Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment

</li> Double-click Log on Locally.</li> Add any users or groups that will use Basic/Clear Text authentication.</li></ol> </li></ol>

Note Microsoft does not recommend that you install an IIS Web server on a Windows 2000 domain controller. The following steps describe how to configure Log on locally right by using Group Policy if it is necessary that you install an IIS Web server on a Windows 2000 domain controller.

To configure the Log on locally right on a domain controller, follow these steps: <ol> In MMC, open the Default Domain Controllers Policy snap-in. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> Click Start, type MMC, and then click OK.</li> Click Console, click Add/Remove Snap-in, and then click Add.</li> Select Group Policy, and then click Add.</li> Click Browse.</li> Double-click the domain controller for the domain.</li> Double-click Default Domain Controllers Policy, and then click Finish.</li> Click Close, and then click OK.</li></ol> </li> Grant users or groups the Log on locally right. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> Expand the following path in the MMC:

Default Domain Controllers Policy\Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment

</li> <li>Double-click Log on Locally.</li> <li>Add any users or groups that will use Basic/Clear Text authentication.</li></ol> </li> <li>Open a command prompt, type secedit /refreshpolicy machine_policy, and then close the command prompt to refresh the policy.</li></ol>

Resolution 3
To give the username the Access this computer from the network permission, follow the same steps that are outlined in Resolution 2, but select the Access this computer from the network advanced user right.

Resolution 4
Try using the command line FTP utility and specify the FTP username in  format when you log into the FTP Site. If this works, then you can either instruct all users to log on by using  format, or you can specify the default authentication domain that the FTP Service should use when authenticating accounts that do not exist locally and that were not entered in the   format. To do this you must make changes to the Metabase.

To specify a default logon domain so users do not have to type  when logging on to the FTP Server, you can either use the Windows Script Host (if it was installed during the Windows NT Option Pack setup) or the NTOP utility Mdutil.exe.

Both methods are described below.

To use the Windows Script Host method, use one of the following methods depending on the version of IIS that you are running:

Note In IIS 6.0, you can resolve this issue by modifying the metabase only when the FTP isolation type is "Isolated (Active Directory)" or if the UserIsolationMode property is set to 2.

IIS 6.0
<ol> <li>Change to the %Systemroot%\Inetpub\Adminscripts directory.</li> <li>Type the following:

Adsutil Set MSFTPSVC/DefaultLogonDomain "Domain Name"

Make sure when you type in the Domain Name that it is enclosed in quotation marks.</li> <li>Stop and restart the FTP Service.</li></ol>

IIS 5.0
<ol> <li>Change to the %Systemroot%\Inetpub\Adminscripts directory.</li> <li>Type the following:

Adsutil Set MSFTPSVC/DefaultLogonDomain "Domain Name"

Make sure when you type the Domain Name that it is enclosed in quotation marks.</li> <li>Stop the FTP Service, and then restart the FTP Service.</li></ol>

IIS 4.0
<ol> <li>Change to the %systemroot%\system32\inetsrv\adminsamples directory.</li> <li>Type the following:

cscript //h:cscript

This sets Cscript as the default WSH interpreter.</li> <li>Type the following:

Adsutil Set MSFTPSVC/DefaultLogonDomain "Domain Name"

Make sure when you type in the Domain Name that it is enclosed in quotation marks.</li> <li>Stop the FTP Service, and then restart the FTP Service.</li></ol>

If the Windows Script Host was not installed during the NTOP setup, use Mdutil.exe. as follows: <ol> <li>Copy Mdutil.exe. from the Windows NT Option Pack compact disc to the %WINDIR%\System32\ directory.

Make sure to copy Mdutil.exe. from the appropriate platform directory on the compact disc.</li> <li>Open a command prompt, and change to the %WINDIR%\System32 directory.</li> <li> Execute the command below replacing <DomainName> with the name of the accounts domain you want to authenticate your user against by default: <pre class="fixed_text">mdutil set msftpsvc/DefaultLogonDomain -utype UT_Server -dtype String -value <DomainName> Make sure that <DomainName> is typed without quotes. </li> <li>When the command completes successfully, stop and restart the FTP Service.</li></ol>

Additional query words: user name file transfer protocol logon login log on in open akz

Keywords: kbprb kbpending KB200475

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.