Features Title Here. Consectetur adipisicing
Features Content Here. Sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
[root@www ~]#
yum -y install vsftpd
Loading "installonlyn"
plugin Loading "fastestmirror" plugin Setting up Install
Process Setting up repositories base
100% |=========================| 1.1 kB 00:00
updates
100% |=========================|
951 B
00:00
addons
100% |=========================|
951 B
00:00
extras
100% |=========================| 1.1 kB 00:00
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! [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
// line 96: make valid
ls_recurse_enable=YES
chroot_local_user=YES
local_root=public_html
use_localtime=YES
[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 ]
[root@www ~]#
chkconfig vsftpd
on
|
|
[2] |
Add CNAME in DNS for FTP server. |
[root@ns ~]#
vi /var/named/server-linux.info.lan
$TTL
86400
@
IN
SOA
ns.server-linux.info. root.server-linux.info. (
)
IN
NS
ns.server-linux.info.
IN
MX 10
ns.server-linux.info.
ns
IN
A
192.168.0.17
www
IN
A
192.168.0.18
mail
IN
A
192.168.0.19
nfs
IN
CNAME
ns.server-linux.info.
ftp
IN
CNAME
www.server-linux.info.
[root@ns ~]#
rndc reload
server reload successful
|
|
0 comments:
Post a Comment