个人工具

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

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: ==== How to configure FTP Server to allow anonymous FTP user to read only?(如何将 FTP 服务器设成只允许匿名 FTP 用户读取?) ==== * Read [[[../GeneralNotes|General Note...)
(没有差异)

2007年5月30日 (三) 18:33的版本

How to configure FTP Server to allow anonymous FTP user to read only?(如何将 FTP 服务器设成只允许匿名 FTP 用户读取?)

  • Read [[[../GeneralNotes|General Notes]]]
    请参阅 [[[../GeneralNotes|简介]]]

  • Read [[[../InstallFTP|How to install FTP Server for File Transfer service?]]]
    请参阅 [[[../InstallFTP|如何安装 FTP 服务来提供文件传输服务]]]
sudo cp /etc/proftpd.conf /etc/proftpd.conf_backup
sudo gedit /etc/proftpd.conf
  • Append the following lines at the end of file
    在文件末尾添加下列几行
<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>
  • Save the edited file
    保存编辑好的文件
sudo /etc/init.d/proftpd restart