特殊:Badtitle/NS100:FtpServer/zh
文章出处: |
{{#if: | {{{2}}} | http://wiki.ubuntu.org.cn/UbuntuHelp:FtpServer }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/af | • {{#if: UbuntuHelp:FtpServer|Afrikaans| [[::FtpServer/zh/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/ar | • {{#if: UbuntuHelp:FtpServer|العربية| [[::FtpServer/zh/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/az | • {{#if: UbuntuHelp:FtpServer|azərbaycanca| [[::FtpServer/zh/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/bcc | • {{#if: UbuntuHelp:FtpServer|جهلسری بلوچی| [[::FtpServer/zh/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/bg | • {{#if: UbuntuHelp:FtpServer|български| [[::FtpServer/zh/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/br | • {{#if: UbuntuHelp:FtpServer|brezhoneg| [[::FtpServer/zh/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/ca | • {{#if: UbuntuHelp:FtpServer|català| [[::FtpServer/zh/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/cs | • {{#if: UbuntuHelp:FtpServer|čeština| [[::FtpServer/zh/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/de | • {{#if: UbuntuHelp:FtpServer|Deutsch| [[::FtpServer/zh/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/el | • {{#if: UbuntuHelp:FtpServer|Ελληνικά| [[::FtpServer/zh/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/es | • {{#if: UbuntuHelp:FtpServer|español| [[::FtpServer/zh/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/fa | • {{#if: UbuntuHelp:FtpServer|فارسی| [[::FtpServer/zh/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/fi | • {{#if: UbuntuHelp:FtpServer|suomi| [[::FtpServer/zh/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/fr | • {{#if: UbuntuHelp:FtpServer|français| [[::FtpServer/zh/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/gu | • {{#if: UbuntuHelp:FtpServer|ગુજરાતી| [[::FtpServer/zh/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/he | • {{#if: UbuntuHelp:FtpServer|עברית| [[::FtpServer/zh/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/hu | • {{#if: UbuntuHelp:FtpServer|magyar| [[::FtpServer/zh/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/id | • {{#if: UbuntuHelp:FtpServer|Bahasa Indonesia| [[::FtpServer/zh/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/it | • {{#if: UbuntuHelp:FtpServer|italiano| [[::FtpServer/zh/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/ja | • {{#if: UbuntuHelp:FtpServer|日本語| [[::FtpServer/zh/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/ko | • {{#if: UbuntuHelp:FtpServer|한국어| [[::FtpServer/zh/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/ksh | • {{#if: UbuntuHelp:FtpServer|Ripoarisch| [[::FtpServer/zh/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/mr | • {{#if: UbuntuHelp:FtpServer|मराठी| [[::FtpServer/zh/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/ms | • {{#if: UbuntuHelp:FtpServer|Bahasa Melayu| [[::FtpServer/zh/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/nl | • {{#if: UbuntuHelp:FtpServer|Nederlands| [[::FtpServer/zh/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/no | • {{#if: UbuntuHelp:FtpServer|norsk| [[::FtpServer/zh/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/oc | • {{#if: UbuntuHelp:FtpServer|occitan| [[::FtpServer/zh/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/pl | • {{#if: UbuntuHelp:FtpServer|polski| [[::FtpServer/zh/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/pt | • {{#if: UbuntuHelp:FtpServer|português| [[::FtpServer/zh/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/ro | • {{#if: UbuntuHelp:FtpServer|română| [[::FtpServer/zh/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/ru | • {{#if: UbuntuHelp:FtpServer|русский| [[::FtpServer/zh/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/si | • {{#if: UbuntuHelp:FtpServer|සිංහල| [[::FtpServer/zh/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/sq | • {{#if: UbuntuHelp:FtpServer|shqip| [[::FtpServer/zh/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/sr | • {{#if: UbuntuHelp:FtpServer|српски / srpski| [[::FtpServer/zh/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/sv | • {{#if: UbuntuHelp:FtpServer|svenska| [[::FtpServer/zh/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/th | • {{#if: UbuntuHelp:FtpServer|ไทย| [[::FtpServer/zh/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/tr | • {{#if: UbuntuHelp:FtpServer|Türkçe| [[::FtpServer/zh/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/vi | • {{#if: UbuntuHelp:FtpServer|Tiếng Việt| [[::FtpServer/zh/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/yue | • {{#if: UbuntuHelp:FtpServer|粵語| [[::FtpServer/zh/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/zh | • {{#if: UbuntuHelp:FtpServer|中文| [[::FtpServer/zh/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/zh-hans | • {{#if: UbuntuHelp:FtpServer|中文(简体)| [[::FtpServer/zh/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer/zh}}/zh-hant | • {{#if: UbuntuHelp:FtpServer|中文(繁體)| [[::FtpServer/zh/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:FtpServer|:FtpServer/zh|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :FtpServer/zh/zh | | {{#ifexist: FtpServer/zh/zh | | {{#ifeq: {{#titleparts:FtpServer/zh|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:FtpServer/zh|1|-1|}} | zh | | }}
3种不同使用方式的ftp服务器的安装。这就下文要讨论的
有3种不同的方式安装ftp服务器: (1) * 匿名FTP :可以用不要密码的匿名帐号访问服务器。当然,服务器管理员可能会设定一些限制来防止用户上传一些非法文件,比如盗版的音乐/电影/游戏。 (2) * FTP既可匿名访问又可使用带密码的用户帐号: 这种方式使得匿名用户和密码用户都可以登录服务器。他们只能访问指定的文件夹, 只有root用户才能对所有的文件或文件夹进行读/改/删除的操作。(3) *'带mysql支持的'FTP对虚拟用户进行授权:这个方法对于那些没有获取虚拟用户授权的系统上的shell帐户,它们中仅有某些用户组能够访问服务器。它使用外部的mysql服务器来存储用户信息。
First Option : Anonymous FTP
Before starting the creation of an anonymous ftp server, you have to add a user called ftp into your system, with a home directory too. This step is really easy, just follow these commands:
useradd -d /home/ftp/ftp -s /bin/false ftp mkdir -p /home/ftp/upload
Doing this permits only this account to write in this folder. You can use more variables to specify what the ftp server will do. Here are some examples:
- -e Allow access to the server only by anonymous users
- -B Start the server with background demon
- -i Anonymous users can't upload files
- -M Let anonymous users create folders
- -s ftp user files cannot be downloaded
Second Option : Both anonymous and passworded account users
To make it possible to have both anonymous and passworded account users in the same server, follow this small guide :
- -B ,-i ,M, -r, -s same of before
- -u <uid> Enable users with a specified user id (uid) to access the server
- -V <Ip address> Only specified IPs will be able to access the server in non-anonymous mode
Third Option : Virtual Users with Mysql
To create a server with mysql support follow this steps :
- Download and install User Manager for PureFTPd which you can find here http://machiel.generaal.net/index.php?subject=user_manager_pureftpd
- Decompress it and upload all its contents into your web server www directory and then write on your browser this link link http://localhost/ftp/install.php
- Follow all the steps that the installer asks to you
- Copy and save rge pureftpd-mysql.conf into pureftpd user manager directory
- Done. Access to the administration panel using this link http://localhost/ftp
More options to add before launch the server process
- -c <num> Max client that can connect to the server
- -C <num> Max connections for a IP
- -T <bandwitdh> Max bandwitdh disponible for each connection
- -n <MBytes> Max MB that a user can have into its home folder
- -m <Cpu Loading> Stops the anonymous uploads if the cpu loading exceed from this value
Thats all.