免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 829 | 回复: 0
打印 上一主题 下一主题

vsftpd安装与配置 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-07-25 13:34 |只看该作者 |倒序浏览
转自:
http://blog.csdn.net/killerboy/archive/2008/02/25/2118060.aspx
1.安装
#cd /usr/ports/ftp/vsftpd  && make install clean
2.运行vsftpd
#vi /usr/local/etc/vsftpd.conf
在里面加入一句listen=YES   保存后退出
#adduser ftp    ls
229 Entering Extended Passive Mode (|||9778|)
150 Here comes the directory listing.
-rw-r--r--    1 0        0        159207965 Dec 07 06:59 1.rmvb
-rw-r--r--    1 0        1001         2649 Jan 11 05:41 xorg.conf.new
226 Directory send OK.
现在一般应用已经建好了
3.扩展应用
下面是我的vsftpd.conf文件
# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=YES  
理解了上面的配置选项  再配置起来就不复杂了
比如我要建立一个wang的用户有上传和下载的权限
编辑vsftpd.conf找到
#local_enable=YES
#write_enable=YES 把注释去掉 重起服务器
再建一个wang的用户  客户端就可以wang 用户登陆了
C:\>ftp 192.168.1.4
Connected to 192.168.1.4.
220 (vsFTPd 2.0.6)
User (192.168.1.4:(none)): wang
331 Please specify the password.
Password:
230 Login successful.
ftp> bin
200 Switching to Binary mode.
ftp> put lame.exe
200 PORT command successful. Consider using PASV.
150 Ok to send data.
226 File receive OK.
ftp: 发送 153088 字节,用时 0.02Seconds 9568.00Kbytes/sec.
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
index
lame.exe
226 Directory send OK.
ftp: 收到 17 字节,用时 0.00Seconds 17000.00Kbytes/sec.
ftp> del lame.exe
250 Delete operation successful.



本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/101001/showart_2007019.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP