Skip to main content

Install & Configure FTP Server on Linux

FTP (File Transfer Protocol) is probably the most popular method of uploading files to a server; a wide array of FTP servers, such as vsftpd, and clients exist for every platform.
Pre-Flight Check

  • These instructions are intended specifically for installing the vsfptd on Ubuntu 14.04 LTS.
  • I’ll be working from a Liquid Web Core Managed Ubuntu 14.04 LTS server, and I’ll be logged in as root.

Step 1: Install vsftpd

Warning: FTP data is insecure; traffic is not encrypted, and all transmissions are clear text (including usernames, passwords, commands, and data). Consider securing your FTP connection with SSL/TLS.
First, you’ll follow a simple best practice: ensuring the list of available packages is up to date before installing anything new.
apt-get update
Then let’s install vsftpd and any required packages:
apt-get -y install vsftpd

Step 2: Configure vsftpd

For a refresher on editing files with vim see: New User Tutorial: Overview of the Vim Text Editor
Let’s edit the configuration file for vsftpd:
vim /etc/vsftpd.conf
Disallow anonymous, unidentified users to access files via FTP; change the anonymous_enable setting to NO:
anonymous_enable=NO
Allow local uses to login by changing the local_enable setting to YES:
local_enable=YES
If you want local user to be able to write to a directory, then change the write_enable setting to YES:
write_enable=YES
Local users will be ‘chroot jailed’ and they will be denied access to any other part of the server; change the chroot_local_user setting to YES:
chroot_local_user=YES
Exit and save the file with the command :wq.
Restart the vsftpd service:
service vsftpd restart

Step 3: Configure the User’s Home Directory

With certain version of vsftpd you may receive the following error: 500 OOPS: vsftpd: refusing to run with writable root inside chroot().
Not to worry! Create a new directory for the user receiving the error (user2 in this case) that is a subdirectory of their home directory (/home/user2). For example:
Fix permissions for user2‘s home directory:
chmod a-w /home/user2/
Make a new directory for uploading files:
mkdir /home/user2/files
chown user2:user2 /home/user2/files/


Comments

Popular posts from this blog

Setup VNC Server on Ubuntu/Linux Mint / Xbuntu / Zorin OS/ Chromium OS

   Virtual Network Computing (VNC) is a graphical desktop sharing system that uses the Remote Frame Buffer protocol (RFB)to remotely control another computer. It transmits the keyboard and mouse events from one computer to another, relaying the graphical screen updates back in the other direction, over a network.    VNC is platform-independent – there are clients and servers for many GUI-based operating systems and for Java. Multiple clients may connect to a VNC server at the same time. Popular uses for this technology include remote technical support and accessing files on one's work computer from one's home computer, or vice versa.    X11VNC is the popular VNC server for creating remote desktop connection and access remote desktop. It works will almost all the desktop environment available for Ubuntu and Debian based systems. Using remote desktop connection we can connect any remote system and access graphical user interface and work. We can use any available vnc viewer

Install fusioninventory-agent on Ubuntu / Linux Mint

Step 1:  For fusioninventory-agent, you’ll need to install these dependencies: sudo apt-get install  dmidecode hwdata ucf hdparm perl libuniversal-require-perl libwww-perl libparse-edid-perl libproc-daemon-perl  libproc-pid-file-perl libfile-which-perl libxml-treepp-perl libyaml-perl libnet-cups-perl libnet-ip-perl libdigest-sha-perl libsocket-getaddrinfo-perl libtext-template-perl Step 2 : For fusioninventory-agent-task-network, you’ll need to install these other dependencies:   sudo apt-get install  nmap libnet-snmp-perl libcrypt-des-perl libnet-nbname-perl FusionInventory website with documentation and news of this wonderful inventory and software deployment tool. Step 3 : For fusioninventory-agent-task-deploy, you’ll need to install these other dependencies: sudo apt-get install libfile-copy-recursive-perl libparallel-forkmanager-perl Step 4 : Install fusioninventory-agent sudo apt-get install fusioninventory-agent fusioninventory-agent-task-network fusi