Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
•Use of FTP
•Types of FTP access
•Configuring a FTP site
•FTP Client side commands
Using the File Transfer
Protocol (FTP) is a popular way
to transfer files from machine to
machine across a network. FTP
clients and servers have been
written for all the popular
platforms, thereby often making
FTP the most convenient way of
performing file transfer.
You can configure FTP servers in two
ways. The first is a private, user only site, which
allows only the users who is having an user
account in FTP server to connect via FTP and
access their files.
The other kind of FTP server is
anonymous, which allows anyone on the network
to connect to it and transfer files without having
an account.
Because of the potential security risk
involved with this setup, you should allow access
only to certain directories on the system.
Installing the FTP Server
Red Hat Linux uses the freely available wu-ftpd
server. This server comes as an RPM and will be installed
during installation. If you have not selected the FTP during the
installation you can install it from the Red Hat Linux CD-
ROM as follow.
Login in to the server as root and mount the CD-ROM and run
the following command:
log transfers
This command is used to log the client’s file transfer The
command format is as follows:
banner path
cdpath dir
cdpath /pub/music
cdpath /home/manoj/tools/av
upload
The upload command controls the files that
are placed on your server. This command determines
the client’s permission for placing a file in specific
directory. This command also determines the file’s
permissions once it is placed in that directory. The
format of upload command is
upload directory dirglog switch owner group
mode mkdir
Here is a smaple entry:
upload /var/ftp * no
upload /var/ftp n/incoming yes ftp ftp 0755
nodir
The /etc/ftphosts File
The /etc/ftphosts file establishes rules on a per-
user basis, determining whether or not users are allowed to log
in from specific hosts.
ftprestart
The ftprestart command is used to restart an FTP
server that has been shut down. The format of
ftprestart is as follows
# ftprestart –V
The –V option merely prints a version number.
ftpshut
The ftpshut command is used to shutdown the FTP
server. The format of the ftpshut is as follows:
ftpshut -l login-minutes -d drop-minutes time
warninig message
ftpcount
# ftp 10.0.0.10