个人工具

UbuntuHelp:PureFTP

来自Ubuntu中文

Oneleaf讨论 | 贡献2007年5月24日 (四) 15:15的版本 (新页面: {{From|https://help.ubuntu.com/community/PureFTP}} {{Languages|UbuntuHelp:PureFTP}} == Pure-ftpd + pureadmin (Ftp server with gui) == These are all steps to follow in order to have a nic...)

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航, 搜索


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.

  • Install the pure-ftpd package if you don't already have it (see InstallingSoftware).
  • Also, install pureadmin package
  • run 'gksudo gedit /etc/inetd.conf' and comment (add a # at the start of) the line containing 'ftp'
  • run 'gksudo gedit /etc/default/pure-ftpd-common' and change STANDALONE_OR_INETD=inetd to STANDALONE_OR_INETD=standalone
  • run 'sudo groupadd ftpgroup' and 'sudo useradd -g ftpgroup -d /dev/null -s /etc ftpuser'
  • create ftpuser directory 'sudo mkdir /home/ftpusers'
  • create joe user directory 'sudo mkdir /home/ftpusers/joe' (you can create a directory for each ftp user)
  • run 'sudo pure-pw useradd joe -u ftpuser -d /home/ftpusers/joe' (a)
  • run 'sudo pure-pw mkdb'
  • run 'sudo ln -s /etc/pure-ftpd/pureftpd.passwd /etc/pureftpd.passwd'
  • run 'sudo ln -s /etc/pure-ftpd/pureftpd.pdb /etc/pureftpd.pdb'
  • run 'sudo ln -s /etc/pure-ftpd/conf/PureDB /etc/pure-ftpd/auth/PureDB'
  • Create file /etc/pure-ftpd/conf/UnixAuthentication containing only the string 'no' without quotes.
  • Modify permissions of /home/ftpusers directory (b) and of any subdirectories. Owner must be ftpuser while Group must be ftpgroup
  • run 'gksudo pureadmin'
  • stop firestarter if installed
  • through "menu editor" modify pureadmin entry command (under 'system tools') from 'pureadmin' to 'gksudo pureadmin'
NOTES

a. joe will be your test user. You can change user joe and/or add other users through pureadmin

b. Easy way to change permissions: run 'gksudo 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]

Be aware that pureadmin must be run as root.

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

Original Ubuntu Forums thread: http://ubuntuforums.org/showthread.php?t=91052