http://www.server-world.info/en/note?os=fc7&p=ftp
| [1] | Build FTP server to transfer files. Install and configure vsftpd for it. |
| [root@www ~]# yum -y install vsftpd Loading "installonlyn" plugin Loading "fastestmirror" plugin Loading mirror speeds from cached hostfile Setting up Install Process Parsing package install arguments Resolving Dependencies --> Running transaction check ---> Package vsftpd.i386 0:2.0.5-16.fc7 set to be updated Dependencies Resolved
=========================================================== Package Arch Version Repository Size =========================================================== Installing: vsftpd i386 2.0.5-16.fc7 fedora 138 k
Transaction Summary =========================================================== Install 1 Package(s) Update 0 Package(s) Remove 0 Package(s)
Total download size: 138 k Downloading Packages: (1/1): vsftpd-2.0.5-16.fc 100% |====================| 138 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-16.fc7 Complete! [root@www ~]# vi /etc/vsftpd/vsftpd.conf
anonymous_enable= NO
ascii_upload_enable=YES ascii_download_enable=YES (permit ascii mode transfer)
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list
ls_recurse_enable=YES
chroot_local_user=YES
local_root=public_html
use_localtime=YES
[root@www ~]# vi /etc/vsftpd/chroot_list
fedora
[root@www ~]# /etc/rc.d/init.d/vsftpd start [root@www ~]# chkconfig vsftpd on | |
| [2] | Add CNAME in DNS for FTP server. |
| [root@ns ~]# vi /var/named/server-linux.info.lan
$TTL86400 @IN SOA ns.server-linux.info. root.server-linux.info. (
)
IN NS ns.server-linux.info.
IN MX 10 ns.server-linux.info.
nsIN A 192.168.0.17 wwwIN A 192.168.0.18
nfsIN CNAME ns.server-linux.info.
ftp IN CNAME www.server-linux.info.
[root@ns ~]# rndc reload server reload successful | |
0 comments:
Post a Comment