You are on page 1of 13

FTP

DAY-25
FTP Stands for File Transfer Protocol
What is FTP?
PORT 21 AND 20
Advantages of FTP
1) It is not file system dependent.
2) It uses two ports for communication , which makes it even
more efficient and stable.
UNIX WINDOWS
FTP SERVER
UNIX WINDOWS
FTP SERVER
UNIX WINDOWS
ZOOM DUBAI ZOOM INDIA
FTP SERVER
W W W
Anonymous FTP
Proftpd is a freeware You can download it from
www.sunsolve.sun.com
www.sunfreeware.com
Anonymous FTP
As anonymous FTP is not available on your SOLARIS box.
We have to download a 3
rd
party package from Internet.
PACKAGE Proftpd.1.2.sol8.intel.tar.gz
# gzip dv Proftpd.1.2.sol8.intel.tar.gz
# tar xvf Proftpd.1.2.sol8.intel.tar
#pkgadd d . Proftpd.1.2.sol8.intel
/usr/local/bin
/usr/local/etc
/usr/local/var
/usr/local
The above proftpd package will install under
NOTE:- A directory by name proftpd is not formed
Configuring PRO-FTP
PROFTP SERVER
Zoom30
192.168.10.230
zoom.com
CONFIGURING PRO-FTP SERVICE
The main configuration file for proftp is proftpd.conf
located under
# cd /usr/local/etc
Daemon proftpd
# vi proftpd.conf
ServerName WELCOME TO ZOOM FTP
ServerType standalone/inetd
DefaultServer on
MaxInstances 30
User nobody
Group nogroup
<Anonymous ~ftp>
UserAlias anonymous ftp
MaxClients 10
</Anonymous>
:wq!
Creating the PRO-FTP User
# useradd d /opt/ftp -m ftp
#passwd ftp
New Password:
Confirm Password:
#
# cd /usr/local/etc
# . /proftpd -c proftpd.conf
START / STOP PRO-FTP SERVICE
#pgrep proftpd
#pkill 9 proftpd
INTEGRATION OF WEB WITH DNS
Ensure DNS is already running on the
webserver.
If DNS is running on different machine then
1) add A record and PTR record of webserver in DNS Server.
2) Configure web server as a DNS Client.
NOTE:- After DNS entries have been updated
then restart the DNS Service.
# vi /etc/services
ftp-data 20/tcp
ftp 21/tcp
:wq!
# vi /usr/local/etc/proftpd.conf
ServerType inetd
:wq!
AUTOMATING THE ProFTP SERVICE
# vi /etc/inetd.conf
ftp stream tcp nowait root /usr/sbin/in.ftpd in.ftpd
ftp stream tcp nowait root /usr/local/etc/proftpd in.proftpd
:wq!
#
# cd /etc/init.d
# ./inetsvc stop | start
Restart Internet Services

You might also like