How to: manually install vsftpd

Discussion in 'Application & Utilities' started by rkwiles, Nov 20, 2013.

  1. rkwiles

    rkwiles New Member

    Joined:
    Sep 25, 2013
    Messages:
    21
    Likes Received:
    0
    Using 'apt-get install vsftpd' did not work.

    Download vsftpd from https://security.appspot.com/vsftpd.html
    Untar file using 'tar xvzf vsftpd-3.0.2.tar.gz'
    Change directory to vsftpd-3.0.2
    Edit builddef.h with your favorite editor, after editing file looked like this.
    Code:
    #ifndef VSF_BUILDDEFS_H
    #define VSF_BUILDDEFS_H
    
    #undef VSF_BUILD_TCPWRAPPERS
    #define VSF_BUILD_PAM
    #undef VSF_BUILD_SSL
    
    #endif /* VSF_BUILDDEFS_H */
    
    Defining VSF_BUILD_SSL did not compile but I did not need it, so left it out.
    Edit Makefile and add line
    LIBS += -lcrypt
    Make it with 'make'
    Once built you need to follow the instructions in the INSTALL file starting with Step 2, 2a, 2b and 2c
    I installed the binary and man pages manually and did not use Step 3
    Code:
    sudo cp vsftpd /usr/local/sbin/vsftpd
    sudo cp vsftpd.conf.5 /usr/local/man/man5
    sudo cp vsftpd.8 /usr/local/man/man8
    sudo cp vsftpd.conf /etc
    
    Edit /etc/vsftpd.conf and make the following changes. I did not want anonymous access.
    Code:
    #anonymous_enable=YES
    local_enable=YES
    write_enable=YES
    
    Can test it by starting it manually 'sudo /usr/local/sbin/vsftpd &'
    Will let you decide how you want start it automatically, the INSTALL will help with that.
     

Share This Page