UbuntuHelp:PureFTP/zh
来自Ubuntu中文
点击翻译: |
English • 中文 |
Pure-FTPD + pureadmin (带图形界面的Ftp服务器)
安装带图形界面的Pure-FTPD
- 从Universe软件仓库中安装pure-ftpd和pureadmin软件包。
- 使用你自己喜欢的文本编辑器打开 /etc/inetd.conf 文件。注释掉(在行的开头加一个 # 号)包含'ftp'的行
- 再用文本编辑器打开 /etc/default/pure-ftpd-common 文件。将 STANDALONE_OR_INETD=inetd 改为 STANDALONE_OR_INETD=standalone
- Then
sudo groupadd ftpgroup
in the terminal.sudo useradd -g ftpgroup -d /dev/null -s /etc ftpuser
- Next create your ftpuser directory
sudo mkdir /home/ftpusers
- Then to create a user directory for joe
sudo mkdir /home/ftpusers/joe
- 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
andsudo ln -s /etc/pure-ftpd/pureftpd.pdb /etc/pureftpd.pdb
which will create symbolic links between the respective files.sudo ln -s /etc/pure-ftpd/conf/PureDB /etc/pure-ftpd/auth/PureDB
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