Advertisement
itnetsec

PureFTPd and PureFTPd Manager on OS X

Dec 17th, 2011
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.87 KB | None | 0 0
  1. #Written by: Michael Wood
  2. #Date: 12-16-2011
  3.  
  4. Note: You will need the Xcode development tools from Apple's site before you can compile PureFTPd, or you will get error messages because you do not have a compatible gcc compiler.
  5.  
  6. In this tutorial we will be installing Pure-FTPd on a Mac OS X platform. What is PureFTPd? Glad you asked:
  7. PureFTPd is a free (BSD), secure, production-quality and standard-conformant FTP server. It doesn't provide useless bells and whistles, but focuses on efficiency and ease of use. It provides simple answers to common needs, plus unique useful features for personal users as well as hosting providers.
  8.  
  9. PureFTPd homepage is here: http://www.pureftpd.org/project/pure-ftpd
  10.  
  11. PureFTPd Manager is a simple Cocoa frontend to PureFTPd. Awesome little app to configure virtual hosts (if you wanted to host different FTP servers from the same server). You can configure virtual users and also chroot them to their home directory. Create SSL certificates within the PureFTPd Manager frontend, change advanced configuration settings such as: Listening ports, passive port ranges, FXP support, directory aliases, permissions....the list goes on.
  12.  
  13. PureFTPd Manager homepage is here: http://jeanmatthieu.free.fr/pureftpd/
  14.  
  15. Let's get started:
  16.  
  17. We need to download the latest tarball package from PureFTPd's ftp server, so go ahead and open a terminal window. When the terminal window opens you should be in your home directory. Change the directory to Downloads:
  18. cd Downloads
  19.  
  20. The latest tarball package, as of this writing, from PureFTPd's ftp server is pure-ftpd-1.0.35.tar.gz. We need to download it, run this command:
  21. curl -O ftp://ftp.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.35.tar.gz
  22.  
  23. Extract the archive:
  24. tar -zxvf pure-ftpd-1.0.35.tar.gz
  25.  
  26. Change to the directory where you extracted the tarball:
  27. cd pure-ftpd-1.0.35
  28.  
  29. Now we need to compile it. We will compile it with everything and virtual chroot for all users. This is the part, that you will run into errors, without the Xcode development tools.
  30. Run this command:
  31. ./configure --with-everything --with-virtualchroot
  32.  
  33. Make the install:
  34. sudo make install-strip
  35.  
  36. Start PureFTPd:
  37. Note: You can pass additional switches to start PureFTPd, like passive port ranges, no anonymous access, etc. This is all configurable with PureFTPd Manager.
  38. sudo /usr/local/sbin/pure-ftpd &
  39.  
  40.  
  41. So, now PureFTPd is installed, lets download PureFTPd Manager. The latest version of PureFTPd Manager is 1.8. Open a browser and download the dmg image:
  42. http://jeanmatthieu.free.fr/pureftpd/pkg/PureFTPd-Manager-1.8.dmg
  43. Open Finder and browse to your Downloads directory and install the app like you normally would. When you launch PureFTPd Manager for the first time you should see at the bottom that it tells you PureFTPd is running. Go ahead and start playing around with it. Cool stuff!
  44.  
  45.  
  46. That should be it. Have fun!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement