vsftpd #3

  • By charmers
  • Latest version (#3)
  • precise
  • Stable
  • Edge

Description

This package provides the "Very Secure FTP Daemon", written from the
ground up with security in mind. It supports both anonymous and non-
anonymous FTP access, PAM authentication, bandwidth limiting, and the
Linux sendfile() facility.


Juju charm vsftpd
Author: Nathan Williams nathan@nathanewilliams.com

Usage

Deploying vsftpd

juju bootstrap
juju deploy --config vsftpd.yaml vsftpd
juju expose vsftpd

To find out the public address of vsftpd, browse the output of the juju status
command.

Configuration

Setup your parameters in vsftpd.yaml:

 edit vsftpd.yaml

A list of settable parameters is available using

juju get vsftpd

or listing config.yaml

By default, the standard ftp port, 21, is turned on, this is changeable through
the config value: "port".

The "delete_departed" config option controls whether to remove files belonging
to users who have left the relation to the ftp-server.

If you decide to enable anonymous access, be aware that the anonymous user,
while not able to upload, will be able to browse and download files in any users
home directory.

Note that due to vsftpd security settings, it is not possible for users to
upload files to their chroot'd home directory. Rather, each user has a folder
"ftp" created within their chroot'd home folder which they can up/download to.

Relations

When a relation is joined, a user for each juju unit is created and has relation
parameters generated for ftp_user, and ftp_passwd. The active port and server
are also available in the relation details.

More Info

For additional configuration options, see Ubuntu's FTP Server help page

Configuration

ftp_user
(string) User to sign in
ftp_passwd
(string) Password to sign in with
delete_departed
(boolean) Delete departed users files
True
ftp_throttle
(int) Speed throttle in bytes/sec
allow_anon
(boolean) Allow anonymous access
port
(int) Port to listen on
21