特殊:Badtitle/NS100:PureFTP:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
(未显示同一用户的1个中间版本) | |||
第38行: | 第38行: | ||
===== NOTES ===== | ===== NOTES ===== | ||
The user '''joe''' is used as an example, you can change user '''joe''' and/or add or remove 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. | ||
You may need to restart PureFTPD before changes take effect. <pre><nowiki> | |||
sudo /etc/init.d/pure-ftpd restart | |||
</nowiki></pre> | |||
<<BR>> | |||
---- | |||
=== TROUBLESHOOTING === | |||
You may be given one of these warnings when trying to connect to your server: | |||
<pre><nowiki> | |||
[WARNING] Can't login as [joe]: account disabled | |||
</nowiki></pre> | |||
<pre><nowiki> | |||
"Sorry, but I can't trust you" | |||
</nowiki></pre> | |||
These two warnings occur if your system set the UserID (UID) and/or GroupID (GID) associated with the '''ftpuser''' user below 1000. To see what the current values are, type the following at a shell: | |||
<pre><nowiki> | |||
id ftpuser | |||
</nowiki></pre> | |||
You'll be given something similar to the following: | |||
<pre><nowiki> | |||
uid=572(ftpuser) gid=972(ftpgroup) groups=972(ftpgroup) | |||
</nowiki></pre> | |||
The actual numbers don't matter much, but they should be higher then 1000 for Pure-FTPD to be happy.<<BR>> | |||
To fix the UserID (UID) portion, open a shell and type: | |||
<pre><nowiki> | |||
sudo usermod -u 1021 -p -U ftpuser | |||
</nowiki></pre> | |||
To fix the GroupID (GID): | |||
<pre><nowiki> | |||
sudo groupmod -g 1022 ftpgroup | |||
</nowiki></pre> | |||
Restart the Pure-FTPD daemon and you should be up and running. | |||
<<BR>><<BR>> | |||
Original Ubuntu Forums thread: | Original Ubuntu Forums thread: | ||
http://ubuntuforums.org/showthread.php?t=91052 | http://ubuntuforums.org/showthread.php?t=91052 <<BR>> | ||
Launch Pad Question: https://answers.launchpad.net/ubuntu/+source/pure-ftpd/+question/99048 | |||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2010年5月19日 (三) 23:58的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/PureFTP }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/af | • {{#if: UbuntuHelp:PureFTP|Afrikaans| [[::PureFTP/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/ar | • {{#if: UbuntuHelp:PureFTP|العربية| [[::PureFTP/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/az | • {{#if: UbuntuHelp:PureFTP|azərbaycanca| [[::PureFTP/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/bcc | • {{#if: UbuntuHelp:PureFTP|جهلسری بلوچی| [[::PureFTP/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/bg | • {{#if: UbuntuHelp:PureFTP|български| [[::PureFTP/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/br | • {{#if: UbuntuHelp:PureFTP|brezhoneg| [[::PureFTP/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/ca | • {{#if: UbuntuHelp:PureFTP|català| [[::PureFTP/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/cs | • {{#if: UbuntuHelp:PureFTP|čeština| [[::PureFTP/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/de | • {{#if: UbuntuHelp:PureFTP|Deutsch| [[::PureFTP/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/el | • {{#if: UbuntuHelp:PureFTP|Ελληνικά| [[::PureFTP/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/es | • {{#if: UbuntuHelp:PureFTP|español| [[::PureFTP/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/fa | • {{#if: UbuntuHelp:PureFTP|فارسی| [[::PureFTP/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/fi | • {{#if: UbuntuHelp:PureFTP|suomi| [[::PureFTP/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/fr | • {{#if: UbuntuHelp:PureFTP|français| [[::PureFTP/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/gu | • {{#if: UbuntuHelp:PureFTP|ગુજરાતી| [[::PureFTP/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/he | • {{#if: UbuntuHelp:PureFTP|עברית| [[::PureFTP/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/hu | • {{#if: UbuntuHelp:PureFTP|magyar| [[::PureFTP/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/id | • {{#if: UbuntuHelp:PureFTP|Bahasa Indonesia| [[::PureFTP/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/it | • {{#if: UbuntuHelp:PureFTP|italiano| [[::PureFTP/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/ja | • {{#if: UbuntuHelp:PureFTP|日本語| [[::PureFTP/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/ko | • {{#if: UbuntuHelp:PureFTP|한국어| [[::PureFTP/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/ksh | • {{#if: UbuntuHelp:PureFTP|Ripoarisch| [[::PureFTP/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/mr | • {{#if: UbuntuHelp:PureFTP|मराठी| [[::PureFTP/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/ms | • {{#if: UbuntuHelp:PureFTP|Bahasa Melayu| [[::PureFTP/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/nl | • {{#if: UbuntuHelp:PureFTP|Nederlands| [[::PureFTP/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/no | • {{#if: UbuntuHelp:PureFTP|norsk| [[::PureFTP/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/oc | • {{#if: UbuntuHelp:PureFTP|occitan| [[::PureFTP/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/pl | • {{#if: UbuntuHelp:PureFTP|polski| [[::PureFTP/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/pt | • {{#if: UbuntuHelp:PureFTP|português| [[::PureFTP/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/ro | • {{#if: UbuntuHelp:PureFTP|română| [[::PureFTP/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/ru | • {{#if: UbuntuHelp:PureFTP|русский| [[::PureFTP/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/si | • {{#if: UbuntuHelp:PureFTP|සිංහල| [[::PureFTP/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/sq | • {{#if: UbuntuHelp:PureFTP|shqip| [[::PureFTP/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/sr | • {{#if: UbuntuHelp:PureFTP|српски / srpski| [[::PureFTP/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/sv | • {{#if: UbuntuHelp:PureFTP|svenska| [[::PureFTP/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/th | • {{#if: UbuntuHelp:PureFTP|ไทย| [[::PureFTP/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/tr | • {{#if: UbuntuHelp:PureFTP|Türkçe| [[::PureFTP/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/vi | • {{#if: UbuntuHelp:PureFTP|Tiếng Việt| [[::PureFTP/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/yue | • {{#if: UbuntuHelp:PureFTP|粵語| [[::PureFTP/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/zh | • {{#if: UbuntuHelp:PureFTP|中文| [[::PureFTP/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/zh-hans | • {{#if: UbuntuHelp:PureFTP|中文(简体)| [[::PureFTP/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PureFTP | UbuntuHelp:PureFTP | {{#if: | :}}PureFTP}}/zh-hant | • {{#if: UbuntuHelp:PureFTP|中文(繁體)| [[::PureFTP/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:PureFTP|:PureFTP|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#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
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
(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
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.
You may need to restart PureFTPD before changes take effect.
sudo /etc/init.d/pure-ftpd restart
<
>
TROUBLESHOOTING
You may be given one of these warnings when trying to connect to your server:
[WARNING] Can't login as [joe]: account disabled
"Sorry, but I can't trust you"
These two warnings occur if your system set the UserID (UID) and/or GroupID (GID) associated with the ftpuser user below 1000. To see what the current values are, type the following at a shell:
id ftpuser
You'll be given something similar to the following:
uid=572(ftpuser) gid=972(ftpgroup) groups=972(ftpgroup)
The actual numbers don't matter much, but they should be higher then 1000 for Pure-FTPD to be happy.<
>
To fix the UserID (UID) portion, open a shell and type:
sudo usermod -u 1021 -p -U ftpuser
To fix the GroupID (GID):
sudo groupmod -g 1022 ftpgroup
Restart the Pure-FTPD daemon and you should be up and running.
<
><
>
Original Ubuntu Forums thread:
http://ubuntuforums.org/showthread.php?t=91052 <
>
Launch Pad Question: https://answers.launchpad.net/ubuntu/+source/pure-ftpd/+question/99048