现在的位置: 首页 > 综合 > 正文

proftpd 配置 笔记

2013年06月25日 ⁄ 综合 ⁄ 共 530字 ⁄ 字号 评论关闭

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

抱歉!评论已关闭.