創建了一個域用戶ftp.dom
始終登錄不上winserver 2008 R2上的FTP.ui
錯誤以下:.net
530-User cannot log in.
Win32 error: Logon failure: unknown user name or bad password.
Error details: Anonymous authentication is not allowed.server
後來將這個用戶更名爲ftp1就能夠了。看來是個bug,不容許ftp用戶存在。blog
ftp1登錄後遇到以下錯誤,ci
用戶(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
登陸失敗。get
緣由,這是隔離用戶的使用方式,io
解決辦法:table
參考: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 |
%FtpRoot%\LocalUser\%UserName% |
還須要將路徑的NTFS權限上加上ftp1的訪問權限便可。