个人工具

“Index/guide/AllowAnonymousRead”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: ==== How to configure FTP Server to allow anonymous FTP user to read only?(如何将 FTP 服务器设成只允许匿名 FTP 用户读取?) ==== * Read [[[../GeneralNotes|General Note...)
 
 
第1行: 第1行:
==== How to configure FTP Server to allow anonymous FTP user to read only?(如何将 FTP 服务器设成只允许匿名 FTP 用户读取?) ====
 
  
* Read [[[../GeneralNotes|General Notes]]]<br>请参阅 [[[../GeneralNotes|简介]]]<br><br>
+
 
* Read [[[../InstallFTP|How to install FTP Server for File Transfer service?]]]<br>请参阅 [[[../InstallFTP|如何安装 FTP 服务来提供文件传输服务]]]
+
如何将 FTP 服务器设成只允许匿名 FTP 用户(anonymous)读取?
 +
 
 +
 
 +
 
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo cp /etc/proftpd.conf /etc/proftpd.conf_backup
 
sudo cp /etc/proftpd.conf /etc/proftpd.conf_backup
 
sudo gedit /etc/proftpd.conf
 
sudo gedit /etc/proftpd.conf
 
</nowiki></pre>
 
</nowiki></pre>
* Append the following lines at the end of file<br>在文件末尾添加下列几行
+
 
 +
 
 +
* 在文件末尾添加下列几行
 
<pre><nowiki>
 
<pre><nowiki>
 
<Anonymous ~ftp>
 
<Anonymous ~ftp>
第26行: 第30行:
 
</Anonymous>
 
</Anonymous>
 
</nowiki></pre>
 
</nowiki></pre>
* Save the edited file<br>保存编辑好的文件
+
 
 +
* 保存编辑好的文件然后
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo /etc/init.d/proftpd restart
 
sudo /etc/init.d/proftpd restart
 
</nowiki></pre>
 
</nowiki></pre>
 +
 +
[[Category:网络]]

2010年5月6日 (四) 14:00的最新版本


如何将 FTP 服务器设成只允许匿名 FTP 用户(anonymous)读取?


sudo cp /etc/proftpd.conf /etc/proftpd.conf_backup
sudo gedit /etc/proftpd.conf


  • 在文件末尾添加下列几行
<Anonymous ~ftp>
User                        ftp
Group                       nogroup
UserAlias                   anonymous ftp
DirFakeUser on ftp
DirFakeGroup on ftp
RequireValidShell           off
MaxClients                  10
DisplayLogin                welcome.msg
DisplayFirstChdir           .message
<Directory *>
<Limit WRITE>
DenyAll
</Limit>
</Directory>
</Anonymous>
  • 保存编辑好的文件然后
sudo /etc/init.d/proftpd restart