个人工具

“UbuntuHelp:PureFTP/zh”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第8行: 第8行:
 
# 使用你自己喜欢的文本编辑器打开 '''/etc/inetd.conf''' 文件。注释掉(在行的开头加一个 '''#''' 号)包含'ftp'的行
 
# 使用你自己喜欢的文本编辑器打开 '''/etc/inetd.conf''' 文件。注释掉(在行的开头加一个 '''#''' 号)包含'ftp'的行
 
# 再用文本编辑器打开 '''/etc/default/pure-ftpd-common''' 文件。将 '''STANDALONE_OR_INETD=inetd''' 改为 '''STANDALONE_OR_INETD=standalone'''
 
# 再用文本编辑器打开 '''/etc/default/pure-ftpd-common''' 文件。将 '''STANDALONE_OR_INETD=inetd''' 改为 '''STANDALONE_OR_INETD=standalone'''
# 然后在终端运行 <pre>sudo groupadd ftpgroup
+
# Then <pre>sudo groupadd ftpgroup
 
</pre> and <pre>
 
</pre> and <pre>
 
sudo useradd -g ftpgroup -d /dev/null -s /etc ftpuser
 
sudo useradd -g ftpgroup -d /dev/null -s /etc ftpuser
第14行: 第14行:
  
 
</pre> in the terminal.
 
</pre> in the terminal.
# 接下来创建ftpuser文件夹 <pre>sudo mkdir /home/ftpusers
+
# Next create your ftpuser directory <pre>sudo mkdir /home/ftpusers
 
</pre>
 
</pre>
 
+
# Then to create a user directory for joe <pre>sudo mkdir /home/ftpusers/joe
# 为用户joe创建用户文件夹 <pre>sudo mkdir /home/ftpusers/joe
+
</pre> (you can create a directory for each ftp user)
 +
# Then to add user joe <pre>sudo pure-pw useradd joe -u ftpuser -d /home/ftpusers/joe
 
</pre>
 
</pre>
 
+
# Then to create you user database <pre>sudo pure-pw mkdb
(你可以为每个ftp用创建一个文件夹)
+
 
+
# 添加用户joe <pre>sudo pure-pw useradd joe -u ftpuser -d /home/ftpusers/joe
+
 
</pre>
 
</pre>
 +
# Then <pre>sudo ln -s /etc/pure-ftpd/pureftpd.passwd /etc/pureftpd.passwd
 +
</pre> and <pre>
 +
sudo ln -s /etc/pure-ftpd/pureftpd.pdb /etc/pureftpd.pdb
  
# 创建用户数据库 <pre>sudo pure-pw mkdb
 
</pre>
 
  
# Then <pre>sudo ln -s /etc/pure-ftpd/pureftpd.passwd /etc/pureftpd.passwd
+
</pre> and <pre>
</pre>
+
sudo ln -s /etc/pure-ftpd/conf/PureDB /etc/pure-ftpd/auth/PureDB
  
 
<pre>sudo ln -s /etc/pure-ftpd/pureftpd.pdb /etc/pureftpd.pdb
 
  
 
+
</pre> which will create symbolic links between the respective files.
</pre>  
+
and
+
<pre>sudo ln -s /etc/pure-ftpd/conf/PureDB /etc/pure-ftpd/auth/PureDB
+
</pre>
+
which will create symbolic links between the respective files.
+
  
 
10. Then using your favorite text editor create the file '''/etc/pure-ftpd/conf/UnixAuthentication''' containing only the string '''no''' without quotes. 11. 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'''
 
10. Then using your favorite text editor create the file '''/etc/pure-ftpd/conf/UnixAuthentication''' containing only the string '''no''' without quotes. 11. 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'''
第45行: 第37行:
 
12. After doing that open up pureadmin in the terminal.
 
12. After doing that open up pureadmin in the terminal.
 
<pre>gksudo pureadmin
 
<pre>gksudo pureadmin
</pre>  
+
</pre>
 
and stop firestarter if it is installed.
 
and stop firestarter if it is installed.
  

2008年3月26日 (三) 09:12的版本





Pure-FTPD + pureadmin (带图形界面的Ftp服务器)

安装带图形界面的Pure-FTPD

  1. 从Universe软件仓库中安装pure-ftpdpureadmin软件包。
  2. 使用你自己喜欢的文本编辑器打开 /etc/inetd.conf 文件。注释掉(在行的开头加一个 # 号)包含'ftp'的行
  3. 再用文本编辑器打开 /etc/default/pure-ftpd-common 文件。将 STANDALONE_OR_INETD=inetd 改为 STANDALONE_OR_INETD=standalone
  4. Then
    sudo groupadd ftpgroup
and

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


in the terminal.
  1. Next create your ftpuser directory
    sudo mkdir /home/ftpusers
  1. Then to create a user directory for joe
    sudo mkdir /home/ftpusers/joe
(you can create a directory for each ftp user)
  1. Then to add user joe
    sudo pure-pw useradd joe -u ftpuser -d /home/ftpusers/joe
  1. Then to create you user database
    sudo pure-pw mkdb
  1. 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.

10. Then using your favorite text editor create the file /etc/pure-ftpd/conf/UnixAuthentication containing only the string no without quotes. 11. 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

12. 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