From the terminal screen, type “sudo apt-get install vsftpd”:

Note: The anonymous “root” is “/home/ftp/”.

noland@mojito:~$ sudo apt-get install vsftpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
vsftpd
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 114kB of archives.
After unpacking 418kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com gutsy/main vsftpd 2.0.5-2ubuntu2 [114kB]
Fetched 114kB in 2s (49.6kB/s)
Selecting previously deselected package vsftpd.
(Reading database ... 99107 files and directories currently installed.)
Unpacking vsftpd (from .../vsftpd_2.0.5-2ubuntu2_i386.deb) ...
Setting up vsftpd (2.0.5-2ubuntu2) ...
Adding system user `ftp' (UID 110) ...
Adding new user `ftp' (UID 110) with group `nogroup' ...
Not creating home directory `/home/ftp'.
* Starting FTP server: vsftpd

You can now place your files in “/home/ftp/”.

8 Responses to “Installing FTP (vsftpd) on Ubuntu 7.10 (Gusty Gibbon)”

  1. Horsefug.Com » Installing FTP (vsftpd) on Ubuntu 7.10 (Gusty Gibbon) Says:

    […] wrote an interesting post today on Installing FTP (vsftpd) on Ubuntu 7.10 (Gusty Gibbon)Here’s a quick […]

  2. LokoN Says:

    Would be cool to post something about how to manage VSFTP, security etc.

  3. Yorick Says:

    Im using Ubuntu 7.10 desktop. I have setup VSFTPd server as instructed, it works fine. I dont know how to connect to it. In another computer i typed ftp 10.0.0.2(my server name) and it said Connected , welcome to blah FTP service. But i need to log in as a user right? how do i create a user that can login to upload and download files? i need users to be able to upload and download files from a fixed directory…pleeeaaassee help:’(

  4. Brock Noland Says:

    Yorick,

    You installed vsftpd on the server, so you must a user on that server? If not,

    # adduser username
    # passwd username

    Then enable local users in vsftpd.conf:
    local_enable=YES

    And likely:
    write_enable=YES

    Brock

  5. Yorick Says:

    Thanks i was able to create a user with this command, i created user demoftpuser with password P@ssw0rd. When i try to log in i get the following error after specifying the password
    500 OOPS: Cannot change directory:/home/demoftpuser
    500 OOPS: child died
    Connection closed by remote client

    Is there any guide that has step by step instructions on how to install vsftpd, add some local users who are able to upload and download files from a fixed file directory?

  6. Brock Noland Says:

    Adduser on your system does not create a home directory.

    mkdir /home/demoftpuser
    chown demoftpuser:demoftpuser /home/demoftpuser

    > Is there any guide that has step by step instructions
    > on how to install vsftpd, add some local users who
    > are able to upload and download files from a fixed
    > file directory?

    Not that I know of, but I will consider writing one.

  7. Dave Says:

    I’m on the same system as Yarick. Is it possible to set another (existing) folder by command?

  8. Brock Noland Says:

    Is it possible to set another (existing) folder by command?

    Do you mean as a users home directoy? If so yes:

    usermod -d /path/to/new/home username
    

    Otherwise I will need you to explain a little more.

Leave a Reply

If Wordpress eats your comment (shell output, loops, ex..) email the text to me.