Step by Step procedure for Install FTP server(Proftpd) on Ubuntu Server 12.04 (proftpd)

Install Proftpd on ubuntu Server

Step1:
sudo apt-get install proftpd



It is preferable to continue the installation in standalone, this way the FTP server will always be receptive. If you choose inetd, the FTP server will only be launched when a connexion is initialized.


Step2:
Parameters:

sudo vi /etc/shells

And add a line "/bin/false" at the end of the file.
Now let's create ftp folders and the upload and download, with 'read only' rights on download and 'read/write' for upload, so that users can upload files.
Create both folders:

Step3: 
cd /home/ftp/
sudo mkdir download upload

Make "download" read-only and "upload" read/write:

cd /home
sudo chmod 755 ftp
cd ftp
sudo chmod 755 download
sudo chmod 777 upload

Now it time to create an account, which will have access to the FTP

Step4: 
sudo useradd user_of_your_choise -p password_of_your_choise -d /home/ftp -s /bin/false
sudo passwd user_of_your_choise

Now all that's left is to edit the configuration file to modify your server configuration (port address, server name, number of people who can connect)

Step5:
sudo vi /etc/proftpd/proftpd.conf

ServerName "Ubuntu" 
- is used when users logon ServerType standalone
 - is the type of server we want. "standalone" for a few users, if we want more, we use "inetd" (no quotes)
DefaultRoot ~
  - this is the important part, when users are jailed to their root folder, not being able to walk around your files on the server.
                                            Port 21
 - the port where users will connect to this server. Usually this is 21.
                                           MaxInstances 30
 - this is maxium of concurrent connections to your computer.
                                           SystemLog /var/log/proftpd/proftpd.log
 - this is the log file
After that we need to restart proftpd to make changes available:

Step 6: 
sudo /etc/init.d/proftpd restart

   More Details Click Here
      Author by:-ubuntu-for-humans

0 comments:

Post a Comment