preload preload preload preload

Installing and Configuring FTP Server Using vsftpd

Step 1: Install vsftpd

Type apt-get command to install vsftpd in ubuntu & Debian

$ sudo apt-get install vsftpd

Type Yum command to install vsftpd in redhat & fedora

Step 2: Configure /etc/vsftpd.conf

The default vsftpd configuration file is /etc/vsftpd.conf. You need to edit this file using text editor such as vi:

$ sudo vi /etc/vsftpd.conf

For restricting anonymous FTP users comment the following line:

# anonymous_enable=YES

or

anonymous_enable=NO

For allowing locale users to login via ftp:

Add the following line (uncomment line) to the vsftpd configuration file:

local_enable=YES
If you would like to allow users to upload file, add the following to the file:

write_enable=YES

For security you may restrict local users to their home directories. Add the following to the file:

chroot_local_user=YES

Save and close the file.

Step 3: Restart vsftpd

To restart vsftpd type the command :

$sudo /etc/init.d/vsftpd restart

Output:

*Stopping FTP server: vsftpd

*Starting FTP server: vsftpd

Now you should be able to FTP to this server with any account that exists on the system except for the root user. From Windows or other Linux system use ftp client, type the command:

$ ftp myftp.com

Output:

Connected to myftp.com.
220 (vsFTPd 2.0.4)
Name (myftp.com:shahid): shahid
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
  • Share/Bookmark
  • One response to "Installing and Configuring FTP Server Using vsftpd"

  • ryanstiles1
    23:35 on April 6th, 2008

    Do you really think this is new thing? Your blog is really good to me, I read it to get useful info, but sometimes I’m bored to tears.

  • Leave a Reply

    * Required
    ** Your Email is never shared