其实怎么安装proftp不用说
一句话就可以了,需要说明的有几点:
1 限制用户主目录
2 限制用户使用shell
如果使用/bin/false 或者是 /usr/sbin/nologin作为用户的shell,则输入正确的密码也登录不上ftp
这个主要是因为 这两个shell程序不是有效的shell程序
# /etc/shells: valid login shells
我们可以编辑 /etc/shells 加入此shell即可,用户则会登录后强制退出了
参考:
http://hi.baidu.com/jeffyqiu/blog/item/d5aba635f992ed8aa61e129b.html
apt-get install proftpd
一句话就可以了,需要说明的有几点:
1 限制用户主目录
#编辑 /etc/proftpd/proftpd.conf ,打开DefaultRoot的注释即可
# Use this to jail all users in their homes
DefaultRoot ~
# Use this to jail all users in their homes
DefaultRoot ~
2 限制用户使用shell
如果使用/bin/false 或者是 /usr/sbin/nologin作为用户的shell,则输入正确的密码也登录不上ftp
这个主要是因为 这两个shell程序不是有效的shell程序
# /etc/shells: valid login shells
我们可以编辑 /etc/shells 加入此shell即可,用户则会登录后强制退出了
参考:
http://hi.baidu.com/jeffyqiu/blog/item/d5aba635f992ed8aa61e129b.html