特殊:Badtitle/NS100:PureFTP/zh:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第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''' | ||
# | # 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. | ||
# | # 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 | |||
# | </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 | |||
# | |||
</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> 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. | |||
</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的版本
文章出处: |
{{#if: | {{{2}}} | http://wiki.ubuntu.org.cn/UbuntuHelp:PureFTP }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/af | • {{#if: UbuntuHelp:PureFTP|Afrikaans| [[::PureFTP/zh/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/ar | • {{#if: UbuntuHelp:PureFTP|العربية| [[::PureFTP/zh/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/az | • {{#if: UbuntuHelp:PureFTP|azərbaycanca| [[::PureFTP/zh/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/bcc | • {{#if: UbuntuHelp:PureFTP|جهلسری بلوچی| [[::PureFTP/zh/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/bg | • {{#if: UbuntuHelp:PureFTP|български| [[::PureFTP/zh/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/br | • {{#if: UbuntuHelp:PureFTP|brezhoneg| [[::PureFTP/zh/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/ca | • {{#if: UbuntuHelp:PureFTP|català| [[::PureFTP/zh/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/cs | • {{#if: UbuntuHelp:PureFTP|čeština| [[::PureFTP/zh/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/de | • {{#if: UbuntuHelp:PureFTP|Deutsch| [[::PureFTP/zh/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/el | • {{#if: UbuntuHelp:PureFTP|Ελληνικά| [[::PureFTP/zh/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/es | • {{#if: UbuntuHelp:PureFTP|español| [[::PureFTP/zh/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/fa | • {{#if: UbuntuHelp:PureFTP|فارسی| [[::PureFTP/zh/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/fi | • {{#if: UbuntuHelp:PureFTP|suomi| [[::PureFTP/zh/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/fr | • {{#if: UbuntuHelp:PureFTP|français| [[::PureFTP/zh/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/gu | • {{#if: UbuntuHelp:PureFTP|ગુજરાતી| [[::PureFTP/zh/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/he | • {{#if: UbuntuHelp:PureFTP|עברית| [[::PureFTP/zh/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/hu | • {{#if: UbuntuHelp:PureFTP|magyar| [[::PureFTP/zh/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/id | • {{#if: UbuntuHelp:PureFTP|Bahasa Indonesia| [[::PureFTP/zh/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/it | • {{#if: UbuntuHelp:PureFTP|italiano| [[::PureFTP/zh/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/ja | • {{#if: UbuntuHelp:PureFTP|日本語| [[::PureFTP/zh/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/ko | • {{#if: UbuntuHelp:PureFTP|한국어| [[::PureFTP/zh/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/ksh | • {{#if: UbuntuHelp:PureFTP|Ripoarisch| [[::PureFTP/zh/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/mr | • {{#if: UbuntuHelp:PureFTP|मराठी| [[::PureFTP/zh/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/ms | • {{#if: UbuntuHelp:PureFTP|Bahasa Melayu| [[::PureFTP/zh/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/nl | • {{#if: UbuntuHelp:PureFTP|Nederlands| [[::PureFTP/zh/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/no | • {{#if: UbuntuHelp:PureFTP|norsk| [[::PureFTP/zh/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/oc | • {{#if: UbuntuHelp:PureFTP|occitan| [[::PureFTP/zh/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/pl | • {{#if: UbuntuHelp:PureFTP|polski| [[::PureFTP/zh/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/pt | • {{#if: UbuntuHelp:PureFTP|português| [[::PureFTP/zh/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/ro | • {{#if: UbuntuHelp:PureFTP|română| [[::PureFTP/zh/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/ru | • {{#if: UbuntuHelp:PureFTP|русский| [[::PureFTP/zh/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/si | • {{#if: UbuntuHelp:PureFTP|සිංහල| [[::PureFTP/zh/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/sq | • {{#if: UbuntuHelp:PureFTP|shqip| [[::PureFTP/zh/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/sr | • {{#if: UbuntuHelp:PureFTP|српски / srpski| [[::PureFTP/zh/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/sv | • {{#if: UbuntuHelp:PureFTP|svenska| [[::PureFTP/zh/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/th | • {{#if: UbuntuHelp:PureFTP|ไทย| [[::PureFTP/zh/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/tr | • {{#if: UbuntuHelp:PureFTP|Türkçe| [[::PureFTP/zh/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/vi | • {{#if: UbuntuHelp:PureFTP|Tiếng Việt| [[::PureFTP/zh/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/yue | • {{#if: UbuntuHelp:PureFTP|粵語| [[::PureFTP/zh/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/zh | • {{#if: UbuntuHelp:PureFTP|中文| [[::PureFTP/zh/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/zh-hans | • {{#if: UbuntuHelp:PureFTP|中文(简体)| [[::PureFTP/zh/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP/zh}}/zh-hant | • {{#if: UbuntuHelp:PureFTP|中文(繁體)| [[::PureFTP/zh/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:PureFTP|:PureFTP/zh|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :PureFTP/zh/zh | | {{#ifexist: PureFTP/zh/zh | | {{#ifeq: {{#titleparts:PureFTP/zh|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:PureFTP/zh|1|-1|}} | zh | | }}
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
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.
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