这里简单的介绍一下 vsftpd 的特点,以及配置。具体请参考 vsftpd 的 man page 和 vsftpd.conf 的 man page,其实vsftpd.conf 本身也很有参考价值...
和其他很多的服务器程序一样,vsftpd 可以为 inetd 或者 xinetd 这两个超级服务器(个么就是服务器的服务器嘛!)启用(这种方式启动较慢,但是对于不频繁使用并且机器的内存紧张的情况还是有用的),也可以作为 standalone 的启用。这个 standalone 模式需要在配置文件中使用 listen=YES 。主配置文件只有一个 vsftpd.conf 。启用的命令行很简单
vsftpd [configuration-file]
配置文件的风格很简单,基本都是 option=value 的模式。那么,我们看看有哪些值得我们试用的 options 。这些是 bool 值(YES 或者 NO):
| options | 解释 | 默认值 | |||
| allow_anon_ssl | 当 ssl_enable 时,允不允许匿名用户使用 ssl 连接。 | NO | |||
| anon_mkdir_write_enable | 当 anonymous 可写目录时是否允许创建子目录 | NO | |||
| anon_other_write_enable | 是否允许 anonymous 进行除了 upload 和 mkdir 之外的 deletion 和 renaming 操作。 | NO | |||
| anon_upload_enable | 当允许 write_enable 时,是否允许 upload 。 | NO | |||
| anon_world_readable_only | anonymous 是否可以下载全部可读文件。 | YES | |||
| anonymous_enable | 使用允许是用 anonymous 和 ftp 用户匿名登录。 | YES | |||
| ascii_download_enable | 允许使用 ASCII 方式下载 | NO | |||
| ascii_upload_enable | 允许使用 ASCII 方式上载 | NO | |||
| async_abor_enable | 某些 ftp client 使用的特性 | NO | |||
| background | 在 Listen 态,该选项决定是否在后台执行监听 | NO | |||
| check_shell | 在 vsftpd 是编译时支持 PAM 则该选项决定是否根据 /etc/shell 判断用户是否具有合法的 shell | YES | |||
| chmod_enable | 给 local users 以 SITE CHMOD 权限,anonymous 不会收到影响(没有这个权限) | YES | |||
| chown_uploads | anonymous 上传文件是否 chown 为 chown_username 所设置用户
上一篇:用Linux架设FTP服务器(下)下一篇:没有了
|
注册
个人空间
