我正在 Windows 7 操作系统上“试验” Microsoft Internet Information Services 7.5 作为 FTP 站点。
我创建了一个名为“Opta-site”的 FTP 站点,并启用了“匿名身份验证”、“基本身份验证”、“IisManagerAuth”和“AspNetAuth”。
FTP 用户隔离未启用(即所有用户直接进入 ftproot)。
然后我尝试匿名连接,并且成功了。
然后,我在 Power Shell 中使用以下命令创建了一个 IIS 用户(用户名:“Opta”,密码“ThePassword”),我认为使用的是 Microsoft .Net API(?)
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Web.Management")
[Microsoft.Web.Management.Server.ManagementAuthentication]::CreateUser("Opta", "ThePassword")
[Microsoft.Web.Management.Server.ManagementAuthorization]::Grant("Opta", "Opta-site", $FALSE)
并且,返回 IIS 管理器 UI,为用户“Opta”启用“允许规则”,以便在 ftp 根目录拥有读写权限。
现在,当我使用 filezilla 或 Windows ftp 等进行连接时,我得到:
Status: Connecting to 192.168.178.20:21...
Status: Connection established, waiting for welcome message...
Response: 220 Microsoft FTP Service
Command: USER Opta
Response: 331 Password required for Opta.
Command: PASS ***********
Response: 530-User cannot log in.
Response: Win32 error: Access is denied.
Response: Error details: Filename: \\?\C:\Windows\system32\inetsrv\config\redirection.config
Response: Error: Cannot read configuration file due to insufficient permissions
Response:
Response:
Response: 530 End
Error: Critical error
Error: Could not connect to server
这是 Windows 问题吗(即在文件“C:\Windows\system32\inetsrv\config\redirection.config”上设置 Windows 权限)?还是其他问题?
我发现其他人也遇到过类似问题,例如Serverfault 问题 A,Serverfault 问题 B,StackOverflow 问题,最后一个建议授予文件“IIS_IUSRS”权限,但在本例中,这些“解决方案”均不起作用。问题仍然存在,没有变化。
谢谢大家的帮助:)
答案1
您尝试连接的帐户是否对 FTP 根目录/必要文件夹具有权限/已定义?