个人工具

“UbuntuHelp:FtpServer/zh”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第1行: 第1行:
 
{{Translation}}<br>{{From|http://wiki.ubuntu.org.cn/UbuntuHelp:FtpServer}}<br>{{Translator|李威}}<br>{{Languages|UbuntuHelp:FtpServer}}&nbsp;
 
{{Translation}}<br>{{From|http://wiki.ubuntu.org.cn/UbuntuHelp:FtpServer}}<br>{{Translator|李威}}<br>{{Languages|UbuntuHelp:FtpServer}}&nbsp;
=== 3种不同使用方式的ftp服务器的安装。这就下文要讨论的 ===
+
=== 3种不同使用方式下的ftp服务器的安装。这就下文要讨论的 ===
  
 
有3种不同的方式安装ftp服务器: (1) * '''匿名FTP''' :可以用不要密码的匿名帐号访问服务器。当然,服务器管理员可能会设定一些限制来防止用户上传一些非法文件,比如盗版的音乐/电影/游戏。 (2) * '''FTP既可匿名访问又可使用带密码的用户帐号:''' 这种方式使得匿名用户和密码用户都可以登录服务器。他们只能访问指定的文件夹, 只有'''root'''用户才能对所有的文件或文件夹进行读/改/删除的操作。(3) *'''带mysql支持的''''''FTP对虚拟用户进行授权:'''这个方法对于那些没有获取虚拟用户授权的系统上的shell帐户,它们中仅有某些用户组能够访问服务器。它使用外部的mysql服务器来存储用户信息。
 
有3种不同的方式安装ftp服务器: (1) * '''匿名FTP''' :可以用不要密码的匿名帐号访问服务器。当然,服务器管理员可能会设定一些限制来防止用户上传一些非法文件,比如盗版的音乐/电影/游戏。 (2) * '''FTP既可匿名访问又可使用带密码的用户帐号:''' 这种方式使得匿名用户和密码用户都可以登录服务器。他们只能访问指定的文件夹, 只有'''root'''用户才能对所有的文件或文件夹进行读/改/删除的操作。(3) *'''带mysql支持的''''''FTP对虚拟用户进行授权:'''这个方法对于那些没有获取虚拟用户授权的系统上的shell帐户,它们中仅有某些用户组能够访问服务器。它使用外部的mysql服务器来存储用户信息。

2008年3月26日 (三) 08:05的版本




 

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 :

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.