echo ""; echo ""; echo ""; echo ""; if(!is_admin){echo "";} » Ubuntu 9.04 Server安装FTP服务器 仲子说

2009-06-13

Ubuntu 9.04 Server安装FTP服务器

Posted in FreeBSD/Unix服务器 at 0:22 Author:仲远

标签:

Ubuntu??????FTP????vsftpd?

1?????????????????

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

sudo vim /etc/apt/sources.list

???????????

deb http://debian.ustc.edu.cn/ubuntu/ jaunty-backports main multiverse restricted universe
deb http://debian.ustc.edu.cn/ubuntu/ jaunty-proposed main multiverse restricted universe
deb http://debian.ustc.edu.cn/ubuntu/ jaunty-security main multiverse restricted universe
deb http://debian.ustc.edu.cn/ubuntu/ jaunty-updates main multiverse restricted universe
deb-src http://debian.ustc.edu.cn/ubuntu/ jaunty main multiverse restricted universe
deb-src http://debian.ustc.edu.cn/ubuntu/ jaunty-backports main multiverse restricted universe
deb-src http://debian.ustc.edu.cn/ubuntu/ jaunty-proposed main multiverse restricted universe
deb-src http://debian.ustc.edu.cn/ubuntu/ jaunty-security main multiverse restricted universe
deb-src http://debian.ustc.edu.cn/ubuntu/ jaunty-updates main multiverse restricted universe

deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty main restricted universe multiverse
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty main restricted universe multiverse
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty-updates main restricted universe multiverse
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty-updates main restricted universe multiverse
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty-backports main restricted universe multiverse
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty-backports main restricted universe multiverse
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty-security main restricted universe multiverse
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty-security main restricted universe multiverse
deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty-proposed main multiverse restricted universe
deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ jaunty-proposed main restricted universe multiverse

deb http://ftp.sjtu.edu.cn/ubuntu/ jaunty main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ jaunty-backports main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ jaunty-proposed main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ jaunty-security main multiverse restricted universe
deb http://ftp.sjtu.edu.cn/ubuntu/ jaunty-updates main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ jaunty main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ jaunty-backports main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ jaunty-proposed main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ jaunty-security main multiverse restricted universe
deb-src http://ftp.sjtu.edu.cn/ubuntu/ jaunty-updates main multiverse restricted universe

deb http://ubuntu.cn99.com/ubuntu/ jaunty main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ jaunty-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ jaunty-proposed main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ jaunty-backports main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ jaunty main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ jaunty-security main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ jaunty-updates main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ jaunty-proposed main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ jaunty-backports main restricted universe multiverse

deb ftp://ftp.neu.edu.cn/mirror/archive.ubuntu.com/ubuntu/ jaunty main multiverse restricted universe
deb ftp://ftp.neu.edu.cn/mirror/archive.ubuntu.com/ubuntu/ jaunty-backports main multiverse restricted universe
deb ftp://ftp.neu.edu.cn/mirror/archive.ubuntu.com/ubuntu/ jaunty-proposed main multiverse restricted universe
deb ftp://ftp.neu.edu.cn/mirror/archive.ubuntu.com/ubuntu/ jaunty-security main multiverse restricted universe
deb ftp://ftp.neu.edu.cn/mirror/archive.ubuntu.com/ubuntu/ jaunty-updates main multiverse restricted universe
deb-src ftp://ftp.neu.edu.cn/mirror/archive.ubuntu.com/ubuntu/ jaunty main multiverse restricted universe
deb-src ftp://ftp.neu.edu.cn/mirror/archive.ubuntu.com/ubuntu/ jaunty-backports main multiverse restricted universe
deb-src ftp://ftp.neu.edu.cn/mirror/archive.ubuntu.com/ubuntu/ jaunty-proposed main multiverse restricted universe
deb-src ftp://ftp.neu.edu.cn/mirror/archive.ubuntu.com/ubuntu/ jaunty-security main multiverse restricted universe
deb-src ftp://ftp.neu.edu.cn/mirror/archive.ubuntu.com/ubuntu/ jaunty-updates main multiverse restricted universe

deb ftp://mirror.lzu.edu.cn/ubuntu/ jaunty main restricted universe multiverse
deb ftp://mirror.lzu.edu.cn/ubuntu/ jaunty-backports restricted universe multiverse
deb ftp://mirror.lzu.edu.cn/ubuntu/ jaunty-proposed main restricted universe multiverse
deb ftp://mirror.lzu.edu.cn/ubuntu/ jaunty-security main restricted universe multiverse
deb ftp://mirror.lzu.edu.cn/ubuntu/ jaunty-updates main restricted universe multiverse
deb-src ftp://mirror.lzu.edu.cn/ubuntu/ jaunty main restricted universe multiverse
deb-src ftp://mirror.lzu.edu.cn/ubuntu/ jaunty-backports main restricted universe multiverse
deb-src ftp://mirror.lzu.edu.cn/ubuntu/ jaunty-proposed main restricted universe multiverse
deb-src ftp://mirror.lzu.edu.cn/ubuntu/ jaunty-security main restricted universe multiverse
deb-src ftp://mirror.lzu.edu.cn/ubuntu/ jaunty-updates main restricted universe multiverse

deb http://mirror.bjtu.edu.cn/ubuntu/ jaunty main restricted universe multiverse
deb http://mirror.bjtu.edu.cn/ubuntu/ jaunty-backports restricted universe multiverse
deb http://mirror.bjtu.edu.cn/ubuntu/ jaunty-proposed main restricted universe multiverse
deb http://mirror.bjtu.edu.cn/ubuntu/ jaunty-security main restricted universe multiverse
deb http://mirror.bjtu.edu.cn/ubuntu/ jaunty-updates main restricted universe multiverse
deb-src http://mirror.bjtu.edu.cn/ubuntu/ jaunty main restricted universe multiverse
deb-src http://mirror.bjtu.edu.cn/ubuntu/ jaunty-backports main restricted universe multiverse
deb-src http://mirror.bjtu.edu.cn/ubuntu/ jaunty-proposed main restricted universe multiverse
deb-src http://mirror.bjtu.edu.cn/ubuntu/ jaunty-security main restricted universe multiverse
deb-src http://mirror.bjtu.edu.cn/ubuntu/ jaunty-updates main restricted universe multiverse

?????????????Ubuntu 9.04????server???????????????????Ubuntu?????????????????jaunty????Ubuntu 9.04?????jaunty ?Ubuntu 9.04???????????gutsy??hardy????Ubuntu 7.10?Ubuntu 8.04??????????????Ubuntu7.10?Ubuntu 8.04?????????????????????????jaunty???hardy??????Ubuntu 8.04??????????????????????????????

2??????????
??apt-get?????:
sudo apt-get update

3???vsftpd??
sudo apt-get install vsftpd

4??? vsftpd.conf??

???????????????
sudo cp /etc/vsftpd.conf /etc/vsftpd.conf.old

???????????????????
#????????
#anonymous_enable=YES
#?????????ftp??????????????ftp???
local_enable=YES
#?????
write_enable=YES
#??????????????022???????????644???????????755
local_umask=022

5???vsftpd???????
sudo rm -R /home/ftp

6??????????ftp???????????
??????????????vsftpd.conf
#??chroot??(Change root)
chroot_list_enable=YES
#??????(?????????)
chroot_list_file=/etc/vsftpd.chroot_list

???????vsftpd.chroot_list??????????????????“??”..
?????linyupark?????sudo nano??????????
?????????2???????????????????????????????????????public_html???
?????vsftpd.conf
#???????????????
user_config_dir=/etc/???????????????????

??????????????????????????????????????vim???
#????????,?????linyupark
local_root=/home/linyupark/public_html

???FTP???
sudo /etc/init.d/vsftpd restart

本文可以自由转载,转载时请保留全文并注明出处:
转载自仲子说 [ http://www.wangzhongyuan.com/ ]
原文链接:

Leave a Comment

*
To prove you're a person (not a spam script), type the security text shown in the picture. Click here to regenerate some new text.
Click to hear an audio file of the anti-spam word