我试图设置一个ftp服务器(在Debian Squeeze ),在searchGoogle之后,我决定使用proftp 。
注意:我有一台PostgreSQL服务器运行在ftp所在的同一台机器上。
我现在有一个关于虚拟用户的问题。 看一些如何的,我认为设置FTP的最佳方式是使用虚拟用户,但所有这些howto的我发现创build一个新的数据库来存储login名/密码信息,而我想proftpd只允许连接到那些拥有PostgreSQL权限的用户。 我的意思是, 只对那些列出的用户这样做 :
# su - postgres $ psql $ \du
我已经根据需要修改了sql.conf文件,但是我不知道如何处理最后的部分:
<IfModule mod_sql.c> SQLBackend postgres SQLEngine on SQLAuthenticate on SQLAuthTypes Backend Crypt #SQLConnectInfo [email protected] proftpd_user proftpd_password # # Describes both users/groups tables # #SQLUserInfo users userid passwd uid gid homedir shell #SQLGroupInfo groups groupname gid members #
是groups表需要吗?
我之前要问服务器有趣的事情搞砸了。
编辑1:这是\du打印。 列标记可能是错误的,因为我直接从西class牙语翻译,我不知道如何显示英文图表。 很抱歉。
所以,我希望能够连接到ftp的用户是: chair_1 , chair_2 , wall_1和myuser 。
Role List Role name | Attributes | Member of ---------------+---------------------+------------ chair | Can't connect | {} chair_1 | | {chair} chair_2 | | {chair} wall | Can't connect | {} wall_1 | | {wall} myuser | Superuser | {} : Create role : Create BD postgres | Superuser | {} : Create role : Create BD