1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
<html xmlns="http://www.w3.org/1999/xhtml">
5
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6
<title>FTP Server</title>
7
<link rel="stylesheet" href="../../common/kde-default.css" type="text/css" />
8
<link rel="stylesheet" href="../../common/kubuntu-default.css" type="text/css" />
9
<meta name="generator" content="DocBook XSL Stylesheets V1.68.1" />
10
<link rel="start" href="index.html" title="Ubuntu Server Guide" />
11
<link rel="up" href="networking.html" title="Chapter 4. Networking" />
12
<link rel="prev" href="openssh-server.html" title="OpenSSH Server" />
13
<link rel="next" href="network-file-system.html" title="Network File System (NFS)" />
16
<div xmlns="" style="background-image: url(../../common/top-middle.png); width: 100%; height: 131px;">
17
<div style="position: absolute; right: 0px;">
18
<img src="../../common/top-right-konqueror.png" style="margin: 0px" alt="" />
20
<div style="position: absolute; left: 0px;">
21
<img src="../../common/top-left.png" style="margin: 0px" alt="" />
23
<div style="position: absolute; top: 25px; right: 100px; text-align: right; font-size: xx-large; font-weight: bold; text-shadow: #fff 0px 0px 5px; color: #444">FTP Server</div>
25
<div xmlns="" style="margin-top: 20px; background-color: #white; color: black; margin-left: 20px; margin-right: 20px;">
26
<div style="position: absolute; left: 20px;">
27
<a accesskey="p" href="openssh-server.html">Prev</a>
29
<div style="position: absolute; right: 20px;">
30
<a accesskey="n" href="network-file-system.html">Next</a>
32
<div class="navCenter">Networking</div>
34
<div class="sect1" lang="C" xml:lang="C">
35
<div class="titlepage">
38
<h2 class="title" style="clear: both"><a id="ftp-server"></a>FTP Server</h2>
42
<p>File Transfer Protocol (FTP) is a TCP protocol for uploading and downloading
43
files between computers. FTP works on a client/server model. The server component is
44
called an <span class="emphasis"><em>FTP daemon</em></span>. It continuously listens for FTP requests
45
from remote clients. When a request is received, it manages the the login and sets up
46
the connection. For the duration of the session it executes any of commands sent by
48
<p>Access to an FTP server can be managed in two ways:</p>
49
<div class="itemizedlist">
50
<ul type="disc" compact="compact">
59
<p>In the Anonymous mode, remote clients can access the FTP server by using the
60
default user account called 'anonymous" or "ftp" and
61
sending an email address as the password. In the Authenticated mode a user must
62
have an account and a password. User access to the FTP server directories and files is
63
dependent on the permissions defined for the account used at login. As a general
64
rule, the FTP daemon will hide the root directory of the FTP server and change it to
65
the FTP Home directory. This hides the rest of the file system from remote
67
<div class="sect2" lang="C" xml:lang="C">
68
<div class="titlepage">
71
<h3 class="title"><a id="vsftpd-ftp-server-installation"></a>vsftpd - FTP Server Installation</h3>
75
<p>vsftpd is an FTP daemon available in
76
Ubuntu. It is easy to install, set up, and
77
maintain. To install <span><strong class="application">vsftpd</strong></span> you
78
can run the following command:
80
<pre class="screen"> <span xmlns="" xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" class="command"><span xmlns="http://www.w3.org/1999/xhtml"><strong class="command">sudo apt-get install vsftpd</strong></span></span> </pre>
84
<div class="sect2" lang="C" xml:lang="C">
85
<div class="titlepage">
88
<h3 class="title"><a id="vsftpd-ftp-server-configuration"></a>vsftpd - FTP Server Configuration</h3>
93
You can edit the vsftpd configuration file,
94
<code class="filename">/etc/vsftpd.conf</code>, to
95
change the default settings.
97
By default only anonymous FTP is
98
allowed. If you wish to disable this option, you
99
should change the following line:
101
<pre class="programlisting">
107
<pre class="programlisting">
111
By default, local system users are not allowed to
112
login to FTP server. To change this setting, you
113
should uncomment the following line:
115
<pre class="programlisting">
119
By default, users are allowed to download files
120
from FTP server. They are not allowed to upload
121
files to FTP server. To change this setting, you
122
should uncomment the following line:
124
<pre class="programlisting">
128
Similarly, by default, the anonymous users are not
129
allowed to upload files to FTP server. To change
130
this setting, you should uncomment the following
133
<pre class="programlisting">
134
#anon_upload_enable=YES
137
The configuration file consists of many
138
configuration parameters. The information about
139
each parameter is available in the configuration
140
file. Alternatively, you can refer to the man
141
page, <span xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" xmlns="" class="command"><span xmlns="http://www.w3.org/1999/xhtml"><strong class="command">man 5 vsftpd.conf</strong></span></span> for
142
details of each parameter.
145
Once you configure <span><strong class="application">vsftpd</strong></span> you
146
can start the daemon. You can run following command to
147
run the <span><strong class="application">vsftpd</strong></span> daemon:
149
<pre class="screen"> <span xmlns="" xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" class="command"><span xmlns="http://www.w3.org/1999/xhtml"><strong class="command">sudo /etc/init.d/vsftpd start</strong></span></span> </pre>
152
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
153
<h3 class="title">Note</h3>
155
Please note that the defaults in the configuration file are
156
set as they are for security reasons. Each of the above
157
changes makes the system a little less secure, so make them
158
only if you need them.
163
<div xmlns="" style="background-color: #white; color: black; margin-top: 20px; margin-left: 20px; margin-right: 20px;">
164
<div style="position: absolute; left: 20px;">
165
<a accesskey="p" href="openssh-server.html">Prev</a>
167
<div style="position: absolute; right: 20px;">
168
<a accesskey="n" href="network-file-system.html">Next</a>
171
<a accesskey="h" href="index.html">Home</a>
174
<div xmlns="" style="background-color: #white; color: black; margin-left: 20px; margin-right: 20px;">
175
<div class="navLeft">OpenSSH Server </div>
176
<div class="navRight"> Network File System (NFS)</div>
177
<div class="navCenter">
178
<a accesskey="u" href="networking.html">Up</a>
183
<div xmlns="" class="bannerBottom" style="background-image: url(../../common/bottom-middle.png); background-repeat: x-repeat; width: 100%; height: 100px; bottom:0px;">
184
<div class="BannerBottomRight">
185
<img src="../../common/bottom-right.png" style="margin: 0px" alt="" />
187
<div class="bannerBottomLeft">
188
<img src="../../common/bottom-left.png" style="margin: 0px;" alt="" />