Proftpd CentOS 用户只能使用 /bin/bash shell 登录

Ser*_*oke 3 centos ftp users proftpd

我已经创建了一个用户并分配了一个密码和组(新组)。问题是这个用户只有拥有shell才能登录FTP(proftpd)=/bin/bash

如果我将 shell 设置为/bin/falseProftpd 不会让他进入并提供 530 Login 错误响应。

我希望用户能够登录到 FTP 但没有其他访问权限,因此无法通过 SSH 登录。这/etc/proftpd.conf是所有默认值,它是 version 1.3.3e,它是 CentOS 6。

小智 6

您想与 proftpd 一起使用的任何 shell 都应列在/etc/shells文件中 ( http://www.proftpd.org/docs/directives/linked/config_ref_RequireValidShell.html )

您应该将 /bin/false 添加到 /etc/shells 或RequireValidShell off在 proftpd 配置中设置

祝你好运!