<?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[vsftpd安装脚本方法二(yum安装) ]]></title> 
<author>admin &lt;admin@gsywx.com&gt;</author>
<category><![CDATA[原创]]></category>
<pubDate>Sat, 17 Jul 2010 02:26:58 +0000</pubDate> 
<guid>http://www.gsywx.com/read.php/.htm</guid> 
<description>
<![CDATA[ 
	较前一vsftpd安装脚本(yum安装)&nbsp;&nbsp;改了本地用户验证方式,添加用户时不用再向chroot文件添加用户名<br/><br/>具体脚本如下:<br/><br/>#!/bin/bash<br/><br/>echo "--------------------------------vsftpd 自动安装脚本--------------------------------"<br/>yum -y install vsftpd<br/>sed -i 's#anonymous_enable=YES#anonymous_enable=NO#'&nbsp;&nbsp;/etc/vsftpd/vsftpd.conf<br/>sed -i 's&#92;#ftpd_banner=Welcome to blah FTP service.&#92;ftpd_banner=Welcome to my vsftpd FTP service.&#92;g' /etc/vsftpd/vsftpd.conf<br/>echo "chroot_local_user=YES" >>/etc/vsftpd/vsftpd.conf<br/>mkdir -p /wwwroot/htdocs<br/>groupadd www<br/>useradd www -g www -d /wwwroot/htdocs -s /sbin/nologin<br/>passwd www<br/>chown www.www /wwwroot/htdocs<br/>chkconfig vsftpd on<br/>service vsftpd start<br/>echo "--------------------------------vsftpd 安装说明------------------------------------"<br/>echo "&#124;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#124;"<br/>echo "&#124;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 用户为 www 密码为刚才所设 FTP根目录为/wwwroot/htdocs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#124;"<br/>echo "&#124; 新增用户样例为(新增用户ktm):useradd ktm -g www -d /wwwroot/ktm -s /sbin/nologin&nbsp;&nbsp;&#124;"<br/>echo "&#124;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;service vsftpd restart&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#124;"<br/>echo "&#124;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#124;"<br/>echo "--------------------------------vsftpd 安装结束!-----------------------------------"<br/>sleep 2<br/>Tags - <a href="http://www.gsywx.com/go.php/tags/linux/" rel="tag">linux</a> , <a href="http://www.gsywx.com/go.php/tags/vsftpd/" rel="tag">vsftpd</a> , <a href="http://www.gsywx.com/go.php/tags/vsftpd%25E5%25AE%2589%25E8%25A3%2585%25E8%2584%259A%25E6%259C%25AC/" rel="tag">vsftpd安装脚本</a>
]]>
</description>
</item><item>
<link>http://www.gsywx.com/read.php/.htm#blogcomment</link>
<title><![CDATA[[评论] vsftpd安装脚本方法二(yum安装) ]]></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>