freebsd vsftpd 配置方法


1.安装

# cd /usr/ports/ftp/vsftpd/
# make install clean

2.配置
编辑 /etc/inetd.conf , 加入下面一行:

ftp stream tcp nowait root /usr/local/libexec/vsftpd vsftpd


编辑 /usr/local/etc/vsftpd.conf , 修改以下配置

# Allow anonymous FTP?
anonymous_enable=NO

# Uncomment this to allow local users to log in.
local_enable=YES

# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd.chroot_list
chroot_local_user=YES

使之运行
# killall -HUP inetd

3.其他
以下资料摘自
服务绑定到某端口)

Guest_enable=yes (虚拟用户可以登陆)

Guest_username=所设的用户名 (将虚拟用户映射为本地用户)

User_config_dir=/任意指定的路径/为用户策略自己所建的文件夹

(指定不同虚拟用户配置文件的路径)


Chown_uploads=yes (改变上传文件的所有者为root)

Chown_username=root


Deny_email_enable=yes (是否允许禁止匿名用户使用某些邮件地址)

Banned_email_file=//任意指定的路径/xx/


Pasv_enable=yes ( 服务器端用被动模式)

User_config_dir=/任意指定的路径//任意文件目录 (指定虚拟用户存放配置文件的路径)
 



« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3