Installing and Configuring vsftpd in Debian 7

The server components are configured, a useful tool (phpMyAdmin) to administer MySQL installed and protected from the outside. Lacking only the ftp server. All are used to upload files to the hosting using FTP clients, so nothing remains, how to install and configure your virtual server support FTP.
Under linux, created a huge number of ftp servers, but I like vsftpd. It is simple to install and perfectly copes with your needs. To install vsftpd in a Terminal window, run the following command:
apt-get install vsftpd
Install vsftpd on Debian 7 takes literally two minutes.
Configuring vsftpd
All settings are stored in the file/etc/vsftpd.conf. vsftpd Open it in the editor nano and make a few adjustments:
Nano/etc/vsftpd.conf
The first thing that needs to be done in the settings file-set a ban on anonymous user connection. Find the option “and prescribes the anonymous_enable her NO”. Then remove the comment from the “option” andlocal_enable write_enable. The first option allows users to log on to the server that are registered in the system. The second allows users to perform any FTP command records.
The last action in the configuration file will be removing comment with the chroot_local_user options. If it is set to “Yes(the default and installed), all system users will be within the chroot and not be able to access other directories on the server.
Save the changes (ctrl + o) and close the file (ctrl + x). Now let’s test the FTP server. To do this, create a new user and make his home directory folder where it will be able to get FTP access.
Adding a new user command adduser. Try to create a new user:
adduser user
User creation utility will ask a few questions (password, various supporting information). Issues with supporting information request (phone, room number, etc.) can ignore, pressing “Enter. For example, suppose the user is created, you will now add a new group webusers and enable a user to user:
Groupadd webusers
usermod-G user webusers
If you now go to the directory/home, we can see that it now has a folder called for recently created a new user. User home directory create two new folders:
mkdir/home/user/www
mkdir/home/user/logs
In the first available files will be stored outside (it will host directory), and the second will be used to store logs. Now we need to change the ownership of the created folders. We created as root, so now the owner is a super user. Changing ownership chown command is executed:
chown user:/home/user/www webusers
chown user: webusers/home/user/logs
chmod 555/home/user
That’s all the preparatory steps have been completed. It remains only to restart the FTP server and try to podcepit′sâ it in any client. Service restart vsftpd perform the traditional way:
Service vsftpd restart
Test configured vsftpd Server
As a test, try to connect the built-in Windows console ftp client with our ftpserver. Open CMD and drive command:
FTP < IP address north >
After the connection is established, the program you have will prompt you to enter the login/password. Enter here the data created by the user. After passing the authentication process, you can start sending the ftp commands. For example, the dir command requests a list of directories with an ftp server. Executing it, you see that the server has available two folderswww and logs.
This installing and configuring the vsftpd take it over.

Leave a Reply

Your email address will not be published. Required fields are marked *