[1] Build FTP server to transfer files. Install and configure vsftpd for it.
[rajat@rajat ~]#
yum -y install vsftpd
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
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-10.el5.i386. 100% |========================| 16 kB 00:00
---> Package vsftpd.i386 0:2.0.5-10.el5 set to be updated
--> Running transaction check
Dependencies Resolved
===========================================================
Package
Arch
Version
Repository
Size
===========================================================
Installing:
vsftpd
i386
2.0.5-10.el5
base
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-10.el
100% |====================| 137 k 00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: vsftpd
#################################### [1/1]
Installed: vsftpd.i386 0:2.0.5-10.el5
Complete!
[rajat@rajat ~]#
vi /etc/vsftpd/vsftpd.conf
anonymous_enable=
NO
// line 12: no anonymous
ascii_upload_enable=YES
// line 79: make valid
ascii_download_enable=YES
(permit ascii mode transfer)
chroot_list_enable=YES
// line 94: make valid
(enable chroot list)
chroot_list_file=/etc/vsftpd/chroot_list
// line 96: make valid
(chroot list file)
ls_recurse_enable=YES
// line 102: make valid
chroot_local_user=YES
// bottom: enable chroot
local_root=public_html
// root directory
use_localtime=YES
// use local time
[root@www ~]#
vi /etc/vsftpd/chroot_list
fedora
// write users you permit
[root@www ~]#
/etc/rc.d/init.d/vsftpd start
Starting vsftpd for vsftpd:
[ OK ]
1 comment:
Good set of instructions. Thanks for including the bit about disabling anonymous. I've always been amused that Very Secure FTPd came with anonymous enabled by default. :-)
Post a Comment