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.

后来将这个用户改名为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 TypesPhysical 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的访问权限即可。

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值