<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[歌声与微笑]]></title> 
<link>http://www.gsywx.com/index.php</link> 
<description><![CDATA[歌声与微笑]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[歌声与微笑]]></copyright>
<item>
<link>http://www.gsywx.com/read.php/.htm</link>
<title><![CDATA[proftpd的安装脚本]]></title> 
<author>admin &lt;admin@gsywx.com&gt;</author>
<category><![CDATA[电脑类]]></category>
<pubDate>Thu, 02 Sep 2010 02:16:57 +0000</pubDate> 
<guid>http://www.gsywx.com/read.php/.htm</guid> 
<description>
<![CDATA[ 
	本内容为原创内容，转载请注明：<br/>本文来自http://blog.gsywx.com<br/><br/>程序可以从官方下载<br/>下载地址：<br/>http://www.proftpd.org/<br/>默认约定：<br/>程序安装位置为 ：/web/proftpd<br/>创建用户为&nbsp;&nbsp;&nbsp;&nbsp; ：www<br/>www家目录为&nbsp;&nbsp;&nbsp;&nbsp;：/home/wwwroot/htdocs<br/>www密码在安装过程中手工输入<br/>脚本代码如下：<br/><br/><div class="code"><br/>#!/bin/bash<br/>clear<br/>echo &quot;----------------proftpd安装程序，按任意键继续---------------&quot;&nbsp;&nbsp;<br/>get_char()<br/>&nbsp;&nbsp;&#123;<br/>&nbsp;&nbsp;SAVEDSTTY=`stty -g`<br/>&nbsp;&nbsp;stty -echo<br/>&nbsp;&nbsp;stty cbreak<br/>&nbsp;&nbsp;dd if=/dev/tty bs=1 count=1 2&gt; /dev/null<br/>&nbsp;&nbsp;stty -raw<br/>&nbsp;&nbsp;stty echo<br/>&nbsp;&nbsp;stty $SAVEDSTTY<br/>&nbsp;&nbsp;&#125;<br/>&nbsp;&nbsp;echo &quot;&quot;<br/>&nbsp;&nbsp;char=`get_char`<br/><br/>wget ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.3a.tar.gz<br/>tar zxvf proftpd-1.3.3a.tar.gz<br/>cd proftpd-1.3.3a<br/>./configure --prefix=/web/proftpd<br/>make<br/>make install<br/><br/>mkdir -p /home/wwwroot/htdocs<br/>groupadd www<br/>useradd www -g www -d /home/wwwroot/htdocs -s /sbin/nologin<br/>echo &quot;Please input new password for user: www&quot;<br/>passwd www<br/>chown -R www.www /home/wwwroot/htdocs<br/><br/>cp contrib/dist/rpm/proftpd.init.d /etc/rc.d/init.d/proftpd<br/>sed -i &#039;s&#92;PATH=&quot;$PATH:/usr/local/sbin&quot;&#92;PATH=&quot;$PATH:/web/proftpd/sbin&quot;&#92;g&#039; /etc/rc.d/init.d/proftpd<br/>chmod +x /etc/rc.d/init.d/proftpd<br/>chkconfig --add proftpd<br/>chkconfig proftpd on<br/>cd ../<br/>mv /web/proftpd/etc/proftpd.conf /web/proftpd/etc/proftpd.conf.bak<br/>cp proftpd.conf /web/proftpd/etc/<br/>service proftpd start<br/><br/>echo &quot;删除安装临时文件..............&quot;<br/>rm -Rf proftpd-1.3.3a<br/>echo <br/>echo<br/>echo &quot; ------------------- 如需增加新用户，请使用以下命令 -------------------&quot;<br/>echo &quot;&#124;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;useradd 用户名 -g 用户组 -d 用户家目录 -s /sbin/nologin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#124;&quot;<br/>echo &quot; -------------------------- proftpd 安装结束! -------------------------&quot;<br/>echo <br/>echo<br/>echo<br/>echo<br/></div><br/><br/>安装过程中的proftpd.conf为直接拷贝，请先行在安装目录创建profptd.conf，代码如下：<br/><div class="code"># This is a basic ProFTPD configuration file (rename it to <br/># &#039;proftpd.conf&#039; for actual use.&nbsp;&nbsp;It establishes a single server<br/># and a single anonymous login.&nbsp;&nbsp;It assumes that you have a user/group<br/># &quot;nobody&quot; and &quot;ftp&quot; for normal operation and anon.<br/><br/>ServerName&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;Welcome to my Proftpd&quot;<br/>ServerType&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;standalone<br/>DefaultServer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;on<br/><br/># Port 21 is the standard FTP port.<br/>Port&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;21<br/><br/># Don&#039;t use IPv6 support by default.<br/>UseIPv6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;off<br/><br/># Umask 022 is a good standard umask to prevent new dirs and files<br/># from being group and world writable.<br/>Umask&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;022<br/><br/># To prevent DoS attacks, set the maximum number of child processes<br/># to 30.&nbsp;&nbsp;If you need to allow more than 30 concurrent connections<br/># at once, simply increase this value.&nbsp;&nbsp;Note that this ONLY works<br/># in standalone mode, in inetd mode you should use an inetd server<br/># that allows you to limit maximum number of processes per service<br/># (such as xinetd).<br/>MaxInstances&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;30<br/><br/># Set the user and group under which the server will run.<br/>User&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nobody&nbsp;&nbsp;<br/>Group&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nobody<br/><br/># To cause every FTP user to be &quot;jailed&quot; (chrooted) into their home<br/># directory, uncomment this line.<br/>#欢迎登录 ProFTPD<br/>DefaultRoot ~<br/><br/># Normally, we want files to be overwriteable.<br/>#允许被写入覆盖<br/>AllowOverwrite&nbsp;&nbsp;&nbsp;&nbsp;on<br/>#下载允许断点续传<br/>AllowRetrieveRestart&nbsp;&nbsp; on<br/>#上传允许断点续传<br/>AllowStoreRestart&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;on<br/>UseReverseDNS off<br/>IdentLookups off<br/>#设置ftp登陆欢迎信息文件<br/>#DisplayLogin welcome.msg<br/>#屏蔽服务器版本信息<br/>#ServerIdent off<br/><br/># Bar use of SITE CHMOD by default<br/>&lt;Limit SITE_CHMOD&gt;<br/>&nbsp;&nbsp;DenyAll<br/>&lt;/Limit&gt;<br/>#以上为全局配置<br/><br/>#以下为具体目录权限配置<br/>&lt;Directory /home/wwwroot/htdocs/&gt;<br/>&lt;Limit SITE_CHMOD&gt;<br/>AllowAll<br/>&lt;/Limit&gt;<br/>&nbsp;&nbsp;AllowRetrieveRestart&nbsp;&nbsp; on<br/>&nbsp;&nbsp;AllowOverwrite&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;on<br/>&nbsp;&nbsp;AllowStoreRestart&nbsp;&nbsp; on<br/>&lt;/Directory&gt;<br/><br/># A basic anonymous configuration, no upload directories.&nbsp;&nbsp;If you do not<br/># want anonymous users, simply delete this entire &lt;Anonymous&gt; section.<br/>#&lt;Anonymous ~ftp&gt;<br/>#&nbsp;&nbsp;User&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ftp<br/>#&nbsp;&nbsp;Group&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ftp<br/><br/>&nbsp;&nbsp;# We want clients to be able to login with &quot;anonymous&quot; as well as &quot;ftp&quot;<br/>#&nbsp;&nbsp;UserAlias&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;anonymous ftp<br/><br/>&nbsp;&nbsp;# Limit the maximum number of anonymous logins<br/>#&nbsp;&nbsp;MaxClients&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;10<br/><br/>&nbsp;&nbsp;# We want &#039;welcome.msg&#039; displayed at login, and &#039;.message&#039; displayed<br/>&nbsp;&nbsp;# in each newly chdired directory.<br/>#&nbsp;&nbsp;DisplayLogin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;welcome.msg<br/>#&nbsp;&nbsp;DisplayChdir&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.message<br/><br/>&nbsp;&nbsp;# Limit WRITE everywhere in the anonymous chroot<br/>#&nbsp;&nbsp;&lt;Limit WRITE&gt;<br/>#&nbsp;&nbsp;&nbsp;&nbsp;DenyAll<br/>#&nbsp;&nbsp;&lt;/Limit&gt;<br/>#&lt;/Anonymous&gt;<br/></div><br/><br/>Tags - <a href="http://www.gsywx.com/go.php/tags/proftpd/" rel="tag">proftpd</a> , <a href="http://www.gsywx.com/go.php/tags/proftpd%25E5%25AE%2589%25E8%25A3%2585/" rel="tag">proftpd安装</a> , <a href="http://www.gsywx.com/go.php/tags/proftpd%25E5%25AE%2589%25E8%25A3%2585%25E8%2584%259A%25E6%259C%25AC/" rel="tag">proftpd安装脚本</a> , <a href="http://www.gsywx.com/go.php/tags/linux%25E7%25B3%25BB%25E7%25BB%259Fproftpd/" rel="tag">linux系统proftpd</a>
]]>
</description>
</item><item>
<link>http://www.gsywx.com/read.php/.htm#blogcomment</link>
<title><![CDATA[[评论] proftpd的安装脚本]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.gsywx.com/read.php/.htm#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>