ubuntu10.10安装ftp服务器
第一步:安装vsftpd
xhy@xhy-desktop:~$sudoapt-getinstallvsftpd
第二步:添加用户
xhy@xhy-desktop:~$sudouseradd-mxxxx
xhy@xhy-desktop:~$sudopasswdxxxx
第三步:修改权限
xhy@xhy-desktop:~$sudochmod755/home/ftp
第四步:创建共享文件夹
xhy@xhy-desktop:~$cd/home/ftp
xhy@xhy-desktop:~$sudomkdirmyftp
xhy@xhy-desktop:~$sudochmod777myftp
第五步:配置文件
xhy@xhy-desktop:~$sudogedit/etc/vsftpd.conf
配置文件比较简单,如下
代码:
#独立模式启动
listen=YES
#同时允许4客户端连入,每个IP最多5个进程
max_clients=200
max_per_ip=4
#不允许匿名用户访问,允许本地(系统)用户登录
anonymous_enable=YES
local_enable=YES
write_enable=NO
第六步:重新启动服务
xhy@xhy-desktop:~$sudo/etc/init.d/vsftpdrestart
第七步:重新电脑
xhy@xhy-desktop:~$sudoreboot
你按照这搞个ftp服务器