除了我自己的之外的所有用户帐户都收到 530 登录不正确错误:vsftpd Ubuntu 12.04

除了我自己的之外的所有用户帐户都收到 530 登录不正确错误:vsftpd Ubuntu 12.04

我刚刚设置了一个 vsftpd 服务器。我有几个家人和朋友的帐户(实际的用户添加帐户),并在他们的主文件夹中安装了一个共享目录。但是,似乎只有我才有 ftp 访问权限。如果我尝试使用“someotheruser”进行 ftp 访问,就会出现以下情况:

$ ftp somewhere.net
Connected to somewhere.net.
220 (vsFTPd 2.3.5)
Name (somewhere.net:myusername): someotheruser
...
530 Login incorrect.

我发现这很奇怪,因为我没有按照第 4 行的提示在 ftp 命令中指定我的用户名 (myusername)。

.conf如下:

listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
dirmessage_enable=YES
use_localtime=YES
connect_from_port_20=YES
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/private/vsftpd.pem

仅供参考:我尝试将 pam_service_name 更改为 ftp。这只会导致另一个错误:

500 OOPS: cannot change directory:/home/someotheruser

相关内容