分类: LINUX
2007-08-28 16:55:17
vsftpd stands for 'very secure ftp daemon' there is plenty of documentation about this ftp daemon from their .
Anything beyond the initial install and startup is left up to you to figure out from their site since the configuration options are all documented there.
We will once again use YUM to install and this is another very easy process:
[root@unisys ~]# yum install vsftpd
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
core 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 1.2 kB 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 1.9 MB 00:04
extras : ################################################## 6118/6118
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for vsftpd to pack into transaction set.
vsftpd-2.0.5-8.i386.rpm 100% |=========================| 16 kB 00:00
---> Package vsftpd.i386 0:2.0.5-8 set to be updated
--> Running transaction check
Dependencies Resolved
Package Arch Version Repository Size
Installing:
vsftpd i386 2.0.5-8 core 137 k
Transaction Summary
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 137 k
Downloading Packages:
(1/1): vsftpd-2.0.5-8.i38 100% |=========================| 137 kB 00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: vsftpd ######################### [1/1]
Installed: vsftpd.i386 0:2.0.5-8
Complete!
[root@unisys ~]#
Now all that needs to be done is for it to be started!
[root@unisys ~]# service vsftpd start
Starting vsftpd for vsftpd: [ OK ]
[root@unisys ~]#
And thats it, you now have a FTP daemon running on your server,
any user on the system (excluding root) can now login via FTP and be
placed in their home directory, by default the daemon sets up a
anonymous FTP with the docroot in /var/ftp/pub , if you want to serve
files without authentication out ftp just place those files in
/var/ftp/pub!
Enjoy!
-Scott D Harvanek
getsebool -a | grep ftp然后再来登录ftp服务器:
setsebool -P ftp_home_dir on
getsebool -a | grep ftp