特殊:Badtitle/NS100:FtpServer
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/FtpServer }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/af | • {{#if: UbuntuHelp:FtpServer|Afrikaans| [[::FtpServer/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/ar | • {{#if: UbuntuHelp:FtpServer|العربية| [[::FtpServer/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/az | • {{#if: UbuntuHelp:FtpServer|azərbaycanca| [[::FtpServer/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/bcc | • {{#if: UbuntuHelp:FtpServer|جهلسری بلوچی| [[::FtpServer/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/bg | • {{#if: UbuntuHelp:FtpServer|български| [[::FtpServer/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/br | • {{#if: UbuntuHelp:FtpServer|brezhoneg| [[::FtpServer/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/ca | • {{#if: UbuntuHelp:FtpServer|català| [[::FtpServer/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/cs | • {{#if: UbuntuHelp:FtpServer|čeština| [[::FtpServer/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/de | • {{#if: UbuntuHelp:FtpServer|Deutsch| [[::FtpServer/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/el | • {{#if: UbuntuHelp:FtpServer|Ελληνικά| [[::FtpServer/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/es | • {{#if: UbuntuHelp:FtpServer|español| [[::FtpServer/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/fa | • {{#if: UbuntuHelp:FtpServer|فارسی| [[::FtpServer/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/fi | • {{#if: UbuntuHelp:FtpServer|suomi| [[::FtpServer/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/fr | • {{#if: UbuntuHelp:FtpServer|français| [[::FtpServer/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/gu | • {{#if: UbuntuHelp:FtpServer|ગુજરાતી| [[::FtpServer/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/he | • {{#if: UbuntuHelp:FtpServer|עברית| [[::FtpServer/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/hu | • {{#if: UbuntuHelp:FtpServer|magyar| [[::FtpServer/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/id | • {{#if: UbuntuHelp:FtpServer|Bahasa Indonesia| [[::FtpServer/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/it | • {{#if: UbuntuHelp:FtpServer|italiano| [[::FtpServer/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/ja | • {{#if: UbuntuHelp:FtpServer|日本語| [[::FtpServer/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/ko | • {{#if: UbuntuHelp:FtpServer|한국어| [[::FtpServer/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/ksh | • {{#if: UbuntuHelp:FtpServer|Ripoarisch| [[::FtpServer/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/mr | • {{#if: UbuntuHelp:FtpServer|मराठी| [[::FtpServer/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/ms | • {{#if: UbuntuHelp:FtpServer|Bahasa Melayu| [[::FtpServer/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/nl | • {{#if: UbuntuHelp:FtpServer|Nederlands| [[::FtpServer/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/no | • {{#if: UbuntuHelp:FtpServer|norsk| [[::FtpServer/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/oc | • {{#if: UbuntuHelp:FtpServer|occitan| [[::FtpServer/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/pl | • {{#if: UbuntuHelp:FtpServer|polski| [[::FtpServer/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/pt | • {{#if: UbuntuHelp:FtpServer|português| [[::FtpServer/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/ro | • {{#if: UbuntuHelp:FtpServer|română| [[::FtpServer/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/ru | • {{#if: UbuntuHelp:FtpServer|русский| [[::FtpServer/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/si | • {{#if: UbuntuHelp:FtpServer|සිංහල| [[::FtpServer/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/sq | • {{#if: UbuntuHelp:FtpServer|shqip| [[::FtpServer/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/sr | • {{#if: UbuntuHelp:FtpServer|српски / srpski| [[::FtpServer/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/sv | • {{#if: UbuntuHelp:FtpServer|svenska| [[::FtpServer/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/th | • {{#if: UbuntuHelp:FtpServer|ไทย| [[::FtpServer/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/tr | • {{#if: UbuntuHelp:FtpServer|Türkçe| [[::FtpServer/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/vi | • {{#if: UbuntuHelp:FtpServer|Tiếng Việt| [[::FtpServer/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/yue | • {{#if: UbuntuHelp:FtpServer|粵語| [[::FtpServer/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/zh | • {{#if: UbuntuHelp:FtpServer|中文| [[::FtpServer/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/zh-hans | • {{#if: UbuntuHelp:FtpServer|中文(简体)| [[::FtpServer/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:FtpServer | UbuntuHelp:FtpServer | {{#if: | :}}FtpServer}}/zh-hant | • {{#if: UbuntuHelp:FtpServer|中文(繁體)| [[::FtpServer/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:FtpServer|:FtpServer|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :FtpServer/zh | | {{#ifexist: FtpServer/zh | | {{#ifeq: {{#titleparts:FtpServer|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:FtpServer|1|-1|}} | zh | | }}
How to setup an ftp server with three possible options. What am I talking about?
There are three different ways to set up an ftp server: (1) * Anonymous FTP : People can access the server only with the anonymous account and without a password. Of course, the server administrator will set a limit for uploads to prevent users from putting illegal files like pirated music/films/games. (2) * FTP with both anonymous access and users with a passworded account: This method lets both anonymous and passworded account users to enter the server. They will only have access to a specified directory, except for the user root who can view/modify/delete all files and/or folders. (3) *FTP with mysql support for virtual users authentication : This method allows access to the server only for some user groups that haven't got a virtual users authentication shell account on the system. It uses an external mysql server that stores user information.
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.