尝试登录 VSFTPD 时登录不正确

尝试登录 VSFTPD 时登录不正确

我正在设置一个新的 Linux 服务器并安装了 VSFTPD。我可以使用 root 用户正常登录 FTP,但不能使用我的新用户“AMP”。我使用的密码与在 SSH 中以 AMP 身份登录时使用的密码相同,因此它不是错误的密码。

我环顾四周,发现有一个用户列表设置...但我已将其设置为“否”,希望这意味着我根本不必担心用户列表。 AMP 有一个主文件夹集(/home/AMP)...我在这里有点迷失。我确信这很简单......有人有什么想法吗?

# Run standalone?  vsftpd can run either from an inetd or as a standalone
# daemon started from an initscript.
listen=NO


userlist_enable=NO
#
# This directive enables listening on IPv6 sockets. By default, listening
# on the IPv6 "any" address (::) will accept connections from both IPv6
# and IPv4 clients. It is not necessary to listen on *both* IPv4 and IPv6
# sockets. If you want that (perhaps because you want to listen on specific
# addresses) then you must run two copies of vsftpd with two configuration
# files.
listen_ipv6=YES
#
# Allow anonymous FTP? (Disabled by default).
anonymous_enable=NO
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES

答案1

在这里找到了答案——

新本地用户无法登录vsftpd

在 /etc/passwd 中向我的用户添加了 /bin/false shell ...,然后将该 shell 添加到 /etc/shells 中的列表中。尝试登录,成功了!!!

相关内容