Differences

This shows you the differences between two versions of the page.

Link to this comparison view

sesipod:linux:debian:proftpd [2018/01/20 04:45] (current)
Line 1: Line 1:
 +==== Here is how to setup ProFTPD on debian ====
 +
 +//This was installed and tested using Debian 7 / with filezilla.//​
 +
 +
 +**command =** ''​aptitude install proftpd''​
 +
 +- Not working? run this **command =** ''​aptitude update''​
 +
 +I chose to use. **standalone**
 +
 +  I use nano to edit files * apt-get install -y nano *
 +
 +Now we need to edit the following file: ''/​etc/​proftpd/​proftpd.conf''​
 +
 +**Now lets change some settings.**
 +
 +change ''​UseIPv6 on''​ TO ''​UseIPv6 off''​
 +
 +Find ''​Port''​ you can change this to whatever port you want to use.
 +
 +..next..
 +
 +Find ''​PassivePorts'' ​ un-comment and change the ports I recommend using 60000 - 65535.
 +
 +..next..
 +
 +Find ''​MasqueradeAddress'' ​ un-comment and add your servers outside ip address.
 +
 +..next..
 +
 +add the following to the bottom of the config file.
 +
 +  <​Global>​
 +    RequireValidShell off
 +  </​Global>​
 +  ​
 +  DefaultRoot ~ ftpuser
 +  ​
 +  <Limit LOGIN>
 +      DenyGroup !ftpuser
 +  </​Limit>​
 +
 +------
 +
 +**Making users and groups**
 +
 +The above lines that you added to the config will prevent users not assigned to (ftpuser) group from connecting to the ftp server. ​
 +
 +Lets make the ftpuser group.
 +
 +**command =** ''​addgroup ftpuser''​
 +
 +Now lets make the ftp user / assign the directory that is going to connect to your server.
 +
 +**command =** ''​adduser USERTOADD -shell /bin/false -home /​var/​www''​
 +
 +Now lets assign the new user that you just made to the ftpuser group.
 +
 +**command =** ''​adduser USERTOADD ftpuser''​
 +
 +
 +Now lets reload and start the ftp server.
 +
 +**command =** ''/​etc/​init.d/​proftpd reload''​
 +
 +**command =** ''/​etc/​init.d/​proftpd start''​
 +
 +------
 +
 +------
 +
 +Allowing the new ftp user and www-data users the rights to (read / wright) in the selected users folder if this is an apache2 server.
 +
 +To do this I'm going to do a workaround by using the newly created group that was automatically made for you when creating the new user.
 +
 +I'm going to pretend for a second that I made a user called bobby this should have created an group called bobby below change bobby to the new users group name. Also change ( /var/www/ )  to the same folder that was selected when making the user account..
 +
 +
 +lets do the following 2 steps.
 +
 +**command =** ''​adduser www-data bobby''​
 +
 +**command =** ''​chgrp -R bobby /​var/​www/''​
 +
 +this should have given both users access to the same folder.
 +
 +------
 +
 +__Last update 02-18-2015__