Revision 5 as of 2005-12-08 11:18:28

Clear message

Pure-ftpd + pureadmin (Ftp server with gui)

These are all steps to follow in order to have a nice ftp server with an easy gui.

  1. install attached pureadmin deb file
  2. Comment the line in /etc/inetd.conf containing 'ftp'
  3. Open /etc/default/pure-ftpd-common and change STANDALONE_OR_INETD=inetd to STANDALONE_OR_INETD=standalone
  4. run 'groupadd ftpgroup' and 'useradd -g ftpgroup -d /dev/null -s /etc ftpuser'
  5. create ftpuser directory 'sudo mkdir /home/ftpusers'
  6. create joe user directory 'sudo mkdir /home/ftpusers/joe' (you can create a directory for each ftp user)
  7. run 'sudo pure-pw useradd joe -u ftpuser -d /home/ftpusers/joe' (a)
  8. run 'sudo pure-pw mkdb'
  9. run 'sudo ln -s /etc/pure-ftpd/pureftpd.passwd /etc/pureftpd.passwd'
  10. run 'sudo ln -s /etc/pure-ftpd/pureftpd.pdb /etc/pureftpd.pdb'
  11. run 'sudo ln -s /etc/pure-ftpd/conf/PureDB /etc/pure-ftpd/auth/PureDB'
  12. Create file /etc/pure-ftpd/conf/UnixAuthentication containing only the string 'no' without quotes.(c)
  13. Modify permissions of /home/ftpusers directory (b) and of any subdirectories. Owner must be ftpuser while Group must be ftpgroup
  14. run sudo pureadmin.
  15. stop firestarter if installed
  16. through "menu editor" modify pureadmin entry command (under 'system tools') from 'pureadmin' to 'gksudo pureadmin'

NOTES

  1. joe will be your test user. You can change user joe and/or add other users through pureadmin
  2. Easy way to change permissions: run 'sudo nautilus', go to /home, change owner with ftpuser and group with ftpgroup. Tick special flags 'set user ID' and 'set group ID'. [not sure if these ticks are necessary]
  3. run 'sudo echo no > cat >/etc/pure-ftpd/conf/UnixAuthentication'

Be aware that pureadmin must be run as root.

Download package from here: http://www.ubuntuforums.org/attachment.php?attachmentid=3623&d=1132160866