特殊:Badtitle/NS100:PureFTP:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Oneleaf留言 | 贡献
新页面: {{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...
 
Oneleaf留言 | 贡献
无编辑摘要
第1行: 第1行:
{{From|https://help.ubuntu.com/community/PureFTP}}
{{From|https://help.ubuntu.com/community/PureFTP}}
{{Languages|UbuntuHelp:PureFTP}}
{{Languages|UbuntuHelp:PureFTP}}
== Pure-ftpd + pureadmin (Ftp server with gui) ==
== 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 ''Pure-FTPD'' with GUI ===
 
* Install the ''pure-ftpd'' package and the ''pureadmin'' package from the Universe Repository.
* Then use your favorite text editor and open up the '''/etc/inetd.conf''' file. Comment (add a '''#''' at the start of) the line containing 'ftp'
* Again use your favorite text editor and open up the '''/etc/default/pure-ftpd-common''' file. Change '''STANDALONE_OR_INETD=inetd''' to '''STANDALONE_OR_INETD=standalone'''
* Then
<pre><nowiki>
sudo groupadd ftpgroup
</nowiki></pre> and
<pre><nowiki>
sudo useradd -g ftpgroup -d /dev/null -s /etc ftpuser
</nowiki></pre> in the terminal.
* Next create your ftpuser directory
<pre><nowiki>
sudo mkdir /home/ftpusers
</nowiki></pre>
* Then to create a user directory for joe
<pre><nowiki>
sudo mkdir /home/ftpusers/joe
</nowiki></pre>  (you can create a directory for each ftp user)
* Then to add user joe
<pre><nowiki>
sudo pure-pw useradd joe -u ftpuser -d /home/ftpusers/joe
</nowiki></pre>
* Then to create you user database
<pre><nowiki>
sudo pure-pw mkdb
</nowiki></pre>
* Then
<pre><nowiki>
sudo ln -s /etc/pure-ftpd/pureftpd.passwd /etc/pureftpd.passwd
</nowiki></pre> and
<pre><nowiki>
sudo ln -s /etc/pure-ftpd/pureftpd.pdb /etc/pureftpd.pdb
</nowiki></pre> and
<pre><nowiki>
sudo ln -s /etc/pure-ftpd/conf/PureDB /etc/pure-ftpd/auth/PureDB
</nowiki></pre> which will create symbolic links between the respective files.
* Then using your favorite text editor create the  file '''/etc/pure-ftpd/conf/UnixAuthentication''' containing only the string '''no''' without quotes.
* Next you need to modify the permissions of '''/home/ftpusers directory'''  and of any other subdirectories.  The owner must be '''ftpuser''' while Group must be '''ftpgroup'''
* After doing that open up pureadmin in the terminal. 
<pre><nowiki>
gksudo pureadmin
</nowiki></pre> and stop firestarter if it is installed.


* Install the <code><nowiki>pure-ftpd</nowiki></code> package if you don't already have it (see InstallingSoftware).
* Also, install <code><nowiki>pureadmin</nowiki></code> 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 =====
===== NOTES =====


a. joe will be your test user. You can change user joe and/or add other users through pureadmin
The user '''joe''' is used as an example, you can change user '''joe''' and/or add or remove 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:
Original Ubuntu Forums thread:
http://ubuntuforums.org/showthread.php?t=91052
http://ubuntuforums.org/showthread.php?t=91052


[[category:CategoryDocumentation]] [[category:CategoryCleanup]]
[[category:CategoryDocumentation]]  


[[category:UbuntuHelp]]
[[category:UbuntuHelp]]

2007年11月21日 (三) 18:15的版本

{{#ifexist: :PureFTP/zh | | {{#ifexist: PureFTP/zh | | {{#ifeq: {{#titleparts:PureFTP|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:PureFTP|1|-1|}} | zh | | }}

Pure-FTPD + pureadmin (Ftp server with gui)

Install Pure-FTPD with GUI

  • Install the pure-ftpd package and the pureadmin package from the Universe Repository.
  • Then use your favorite text editor and open up the /etc/inetd.conf file. Comment (add a # at the start of) the line containing 'ftp'
  • Again use your favorite text editor and open up the /etc/default/pure-ftpd-common file. Change STANDALONE_OR_INETD=inetd to STANDALONE_OR_INETD=standalone
  • Then
sudo groupadd ftpgroup

and

sudo useradd -g ftpgroup -d /dev/null -s /etc ftpuser

in the terminal.

  • Next create your ftpuser directory
sudo mkdir /home/ftpusers
  • Then to create a user directory for joe
sudo mkdir /home/ftpusers/joe

(you can create a directory for each ftp user)

  • Then to add user joe
sudo pure-pw useradd joe -u ftpuser -d /home/ftpusers/joe
  • Then to create you user database
sudo pure-pw mkdb
  • Then
sudo ln -s /etc/pure-ftpd/pureftpd.passwd /etc/pureftpd.passwd

and

sudo ln -s /etc/pure-ftpd/pureftpd.pdb /etc/pureftpd.pdb

and

sudo ln -s /etc/pure-ftpd/conf/PureDB /etc/pure-ftpd/auth/PureDB

which will create symbolic links between the respective files.

  • Then using your favorite text editor create the file /etc/pure-ftpd/conf/UnixAuthentication containing only the string no without quotes.
  • Next you need to modify the permissions of /home/ftpusers directory and of any other subdirectories. The owner must be ftpuser while Group must be ftpgroup
  • After doing that open up pureadmin in the terminal.
gksudo pureadmin

and stop firestarter if it is installed.


NOTES

The user joe is used as an example, you can change user joe and/or add or remove other users through pureadmin.


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