天天看點

windows server 2008 R2 FTP登陸錯誤。

建立了一個域使用者ftp.

始終登陸不上winserver 2008 R2上的FTP.

錯誤如下:

530-User cannot log in.

 Win32 error:   Logon failure: unknown user name or bad password.

 Error details: Anonymous authentication is not allowed.

windows server 2008 R2 FTP登陸錯誤。

後來将這個使用者改名為ftp1就可以了。看來是個bug,不允許ftp使用者存在。

ftp1登陸後遇到如下錯誤,

使用者(wsus-srv.creasun.local:(none)): ftp1

331 Password required for ftp1.

密碼:

530-User cannot log in, home directory inaccessible.

 Win32 error:   The system cannot find the path specified.

 Error details: File system returned an error.

530 End

登入失敗。

原因,這是隔離使用者的使用方式,

解決辦法:

參考:http://www.iis.net/learn/publish/using-the-ftp-service/configuring-ftp-user-isolation-in-iis-7

具體操作如下:這需要建立相應的home目錄和賦予權限。

例如ftp root目錄是c:\root

則需要在c:\root下建立相應的使用者home目錄。路徑規則如下

User Account Types

Physical Home Directory Syntax

Anonymous users

%FtpRoot%\LocalUser\Public

Local Windows user accounts (requires basic authentication)

%FtpRoot%\LocalUser\%UserName%

Windows domain accounts (requires basic authentication)

%FtpRoot%\%UserDomain%\%UserName%

IIS Manager or ASP.NET custom authentication user accounts

 還需要将路徑的NTFS權限上加上ftp1的通路權限即可。