- 论坛徽章:
- 0
|
我安装好了proftpd 1.28,(安装目录/usr/local/proftpd),有下面几个问题请各位高手解答:
我的系统平台是FreeBSD 4.7
1、怎样配置 proftpd.conf 使能够达到我下面的要求:
可以用anonymous 无密码访问,另外建立一个 visitor 用户以口令login123登录,两个用户登录的ftp根目录都是 /var/ftp,
并且把登录用户限制在ftp根目录里。需要的时候可以禁止anonymous访问。
visitor用户可以在/var/ftp/incoming上传文件,不能建立子目录。上传文件由root/wheel所有。
下面是我拷贝过来的proftpd一份例子配置文件,我不知道怎么修改,麻烦各位高手指点一下。
ServerName " roFTPD Anonymous Server"
ServerType standalone
# Port 21 is the standard FTP port.
Port 21
# If you don't want normal users logging in at all, uncomment this
# next section
#<Limit LOGIN>;
# DenyAll
#</Limit>;
User nobody
Group nogroup
MaxInstances 30
TimeoutStalled 300
DisplayLogin welcome.msg
DisplayFirstChdir .message
<Anonymous ~ftp>;
# Allow logins if they are disabled above.
<Limit LOGIN>;
AllowAll
</Limit>;
# Maximum clients with message
MaxClients 5 "Sorry, max %m users -- try again later"
User ftp
Group ftp
# We want clients to be able to login with "anonymous" as well as "ftp"
UserAlias anonymous ftp
# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE>;
DenyAll
</Limit>;
# An upload directory that allows storing files but not retrieving
# or creating directories.
<Directory uploads/*>;
<Limit READ>;
DenyAll
</Limit>;
<Limit STOR>;
AllowAll
</Limit>;
</Directory>;
</Anonymous>;
2、怎样让 proftpd 可以以 proftpd start|restart|stop 这样来控制启动和关闭。
我在Proftpd安装目录里看到这样一个脚本:proftpd.init.d,那么怎样修改它来使用呢? |
|