Tag Archives: proftpd

ubuntu intrepid下安装proftpd配置postgresql后端

因为在另外一台机器上已经配置过,本以为很简单,复制过来就可以,没想到还是出问题,检查了半天,发现是group table没有设置的原因。 安装: sudo aptitude install proftpd proftp-pgsql 配置: 在/etc/proftpd/proftpd.conf里把 #Include /etc/proftpd/sql.conf 这行的注释去掉,然后修改/etc/proftpd/sql.conf文件,修改为: SQLBackend postgres SQLEngine on SQLAuthenticate users SQLAuthTypes Crypt Plaintext SQLConnectInfo db@server_name_or_ip user password RequireValidShell off SQLUserInfo ftp.users userid passwd uid gid homedir shell SQLGroupInfo ftp.groups groupname gid … Continue reading

Posted in Linux | Tagged , , , | 1 Comment

set a virtual directory in proftpd

There are requirements to setup some virtual directory to some users, I think this can be solved by symbol link at first, but it does not work, then got answers from google: just use the mount command. for example: mount … Continue reading

Posted in Linux | Tagged , , , | Leave a comment

ubuntu hardy下简易的proftpd+mysql配置

1. 安装 sudo aptitude install proftpd proftpd-mysql 2. 配置 /etc/proftpd/proftpd.conf 把 Include /etc/proftpd/sql.conf 前面的注释去掉 然后修改/etc/proftpd/sql.conf,我的相关配置如下: SQLBackend mysql SQLEngine on SQLAuthenticate on SQLAuthTypes Plaintext Crypt SQLConnectInfo ftp@localhost proftp abcde SQLUserInfo ftpuser userid passwd uid gid homedir shell SQLGroupInfo ftpgroup groupname gid … Continue reading

Posted in Linux | Tagged , , , | Leave a comment

设置proftpd+mysql的虚拟FTP服务

具体设置参考:http://www.howtoforge.com/proftpd_mysql_virtual_hosting 按照上面的设置完成后,还需要的操作: 1、允许恢复上传 在proftpd.conf里添加一行: AllowStoreRestart on 2、权限控制 比如,控制只读,可以在文件权限上设置,把写权限去掉,也可以在FTP权限里进行控制。 在FTP里进行权限控制,在相应目录下创建一个.ftpaccess文件,里面内容为: <limit STOR>DENYALL</limit> 而专门供上传的目录,需要控制为不可删除: <limit DELE>DENYALL</limit>

Posted in Linux | Tagged , | Leave a comment

debian sarge proftpd-mysql安装

安装完proftpd-mysql后, 首先创建数据库: CREATE TABLE `ftpuser` ( `id` int(10) unsigned NOT NULL auto_increment, `userid` varchar(32) NOT NULL default ”, `passwd` varchar(32) NOT NULL default ”, `uid` smallint(6) unsigned NOT NULL default ’65534′, `gid` smallint(6) unsigned NOT NULL default ’65534′, `homedir` varchar(255) … Continue reading

Posted in Linux | Tagged , , | 1 Comment