教你在Gentoo中配置FTP服务器(proftpd),有需要的朋友可以看看。
主机环境:Gentoo 11.2
内核版本:linux Kernel 3.2.1
这里选择proftpd作为FTP服务器
1、安装proftpd
emerge -av proftpd
2、配置proftpd
首先,复制/etc/proftpd/proftpd.conf.sample
cp /etc/proftpd/proftpd.conf.sample /etc/proftpd/proftpd.conf
然后,打开该文件进行适当的修改。以下是我的文件:
3、启动服务
/etc/proftpd/proftpd start
如果正常这样默认的FTP配置的服务器就搭建好了。
遇到一个问题:ftp用户登录时总是失败,相关日志:
Mar 16 12:05:46 yan-laptop proftpd[15868] yan-laptop: ProFTPD 1.3.3g (maint) (built Fri Mar 16 2012 10:36:06 CST) standalone mode STARTUP
Mar 16 12:05:46 yan-laptop proftpd[15819] yan-laptop (yan-laptop[::ffff:127.0.0.1]): FTP session closed.
Mar 16 12:05:52 yan-laptop proftpd[15877] yan-laptop (yan-laptop[::ffff:127.0.0.1]): FTP session opened.
Mar 16 12:05:57 yan-laptop proftpd[15877] yan-laptop (yan-laptop[::ffff:127.0.0.1]): ftp: Directory /home/ftp/ is not accessible.
Mar 16 12:07:39 yan-laptop proftpd[15877] yan-laptop (yan-laptop[::ffff:127.0.0.1]): FTP session closed.
Mar 16 12:11:00 yan-laptop proftpd[15868] yan-laptop: ProFTPD killed (signal 15)
Mar 16 12:11:00 yan-laptop proftpd[15868] yan-laptop: ProFTPD 1.3.3g standalone mode SHUTDOWN
解决方法:
去掉aclUSE标记,重新编译proftpd安装
USE="-acl" emerge proftpd
重启服务,问题解决。
本文转自:http://blog.csdn.net/yming0221/article/details/7360370