阅读内容

Linux下实现FTP匿名用户访问

[日期:2007-11-29] 来源:Linux公社  作者:Linux


Linux下怎样才能实现FTP匿名用户访问呢?下面说说详细过程:

一、说明
1、配置文件:
/etc/vsftpd/vsftpd.conf

2、默认匿名用户:
more /etc/passwd
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin

二、举例
用系统匿名用户FTP登陆访问FTP目录,只赋予下载权限,FTP目录指定到/home/ftp

1、修改配置文件
# vi /etc/vsftpd/vsftpd.conf
local_enable=NO
connect_from_port_20=YES
listen=YES
listen_port=21
tcp_wrappers=YES
anonymous_enable=YES
ftp_username=ftp
no_anon_password=YES
anon_root=/home/ftp
anon_world_readable_only=YES

2、重启ftp服务
#service vsftpd restart

3、如果出现421 Service not available, remote server has closed connection错误
vi  /etc/hosts.allow
添加:
vsftpd:ALL

12下一页  GO



相关资讯       LINUX FTP 
本文评论       全部评论
发表评论
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款


点评: 字数
姓名:

L
I
N
U
X


GOOGLE搜索
Google