ubuntu 10.04 LTS vsftp搭建
作者:互联网
原文链接:http://www.cnblogs.com/van9ogh/archive/2012/04/02/2429777.html
local_enable=YESwrite_enable=YES
local_umask=022
no_anon_password=YESanonymous_enable=YESanon_world_readable_only=YESanon_other_write_enable=YESanon_mkdir_write_enable=YESanon_upload_enable=YESanon_umask=002
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
ascii_upload_enable=YESascii_download_enable=YES
ftpd_banner=Welcome to blah FTP service.
secure_chroot_dir=/var/run/vsftpd/empty
rsa_cert_file=/etc/ssl/private/vsftpd.pemtcp_wrappers=YES
Prepare:
ubuntu10.04的ftp的家目录在/srv/ftp,修改家目录:
1 $sudo usermod -d /srv/ftp ftp
/etc/vsftpd.conf
listen=YESpasv_enable=YESlocal_enable=YESwrite_enable=YES
local_umask=022
no_anon_password=YESanonymous_enable=YESanon_world_readable_only=YESanon_other_write_enable=YESanon_mkdir_write_enable=YESanon_upload_enable=YESanon_umask=002
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
ascii_upload_enable=YESascii_download_enable=YES
ftpd_banner=Welcome to blah FTP service.
secure_chroot_dir=/var/run/vsftpd/empty
rsa_cert_file=/etc/ssl/private/vsftpd.pemtcp_wrappers=YES
说明:
1.如果要打开匿名用户上传权限,那么另外还需要建立一个对应的上传目录,并且设置该目录的拥有者为ftp
2.如果出现错误提示:500 OOPS: vsftpd: refusing to run with writable anonymous root
那么一定是你的ftp家目录,也就是/srv/ftp的目录权限由问题,请将拥有者改为root,组改为ftp
3.配置完,需要重新启动服务
$sudo service vsftpd restart
or
$sudo /etc/init.d/vsftpd restart
现在可以进行测试了,成功是必须的!
参考:
[1]. http://vbird.dic.ksu.edu.tw/linux_server/0410vsftpd/0410vsftpd-centos4.php 著名的鸟哥,你懂的!
[2].http://techblog.tgharold.com/2011/03/500-oops-vsftpd-refusing-to-run-with.html
[3].man vsftpd.conf
转载于:https://www.cnblogs.com/van9ogh/archive/2012/04/02/2429777.html
标签:LTS,ftp,enable,run,vsftpd,vsftp,YESanon,目录,10.04 来源: https://blog.csdn.net/weixin_30318645/article/details/96602436