proftpd 配置 笔记

来源:互联网 发布:安卓抓取网页数据 编辑:程序博客网 时间:2024/05/06 05:25

proftpd可以直接通过本地用户远程登录,默认登录目录为用户Home目录。

1. 安装和启动

proftpd可以通过两种模式启动,standalone和xinetd。

通过xinetd需要安装xinetd,ubuntu下默认可能没有安装xinetd,通过apt-get install xinetd安装。

init的启动文件在/etc/init.d/proftpd,proftpd的配置文件为/etc/proftpd/proftpd.conf,如果安装的时候选择xinetd,然而xinetd没有安装,通过/etc/init.d/proftpd启动时,会打印提示:"ProFTPD warning: cannot start neither in standalone nor in inetd/xinetd mode. Check your configuration.“ init文件/etc/init.d/proftpd比较简单,可以通过插入打印语句来判断问题原因。


2. 配置(/etc/proftpd/proftpd.conf)

限制用户不能跑出其Home目录

# Use this to jail all users in their homes
 DefaultRoot                    ~

设置文件权限Umask


# 因为虚拟用户是没有 shell 的,所以要打开这个设定RequireValidShell               off# 用 mod_auth_file.c 验证登录用户名和密码AuthOrder                       mod_auth_file.c# 存放用户名和密码的文件AuthUserFile                    /etc/proftpd/ftpd.passwd# 允许下载时断点续传AllowRetrieveRestart on# 允许上传时断点续传AllowStoreRestart on# 客户端登录时不显示服务器信息ServerIdent off

原创粉丝点击