<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>{Complexity} &#187; Server</title>
	<atom:link href="http://technote.wsjoung.com/tag/server/feed/" rel="self" type="application/rss+xml" />
	<link>http://technote.wsjoung.com</link>
	<description>simple note</description>
	<lastBuildDate>Fri, 06 Aug 2010 19:03:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>logrotate debug</title>
		<link>http://technote.wsjoung.com/2010/06/08/logrotate-debug/</link>
		<comments>http://technote.wsjoung.com/2010/06/08/logrotate-debug/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 07:07:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[logrotate]]></category>

		<guid isPermaLink="false">http://technote.wsjoung.com/?p=135</guid>
		<description><![CDATA[logrotate -f -v /etc/logrotate.conf than it will update /var/lib/logrotate/status]]></description>
			<content:encoded><![CDATA[<p>logrotate -f -v /etc/logrotate.conf</p>
<p>than it will update /var/lib/logrotate/status</p>
]]></content:encoded>
			<wfw:commentRss>http://technote.wsjoung.com/2010/06/08/logrotate-debug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Server Configuration Job Log</title>
		<link>http://technote.wsjoung.com/2009/12/13/server-configuration-job-log/</link>
		<comments>http://technote.wsjoung.com/2009/12/13/server-configuration-job-log/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 22:12:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://technote.wsjoung.com/?p=120</guid>
		<description><![CDATA[Dell PowerEdge  SC1420 Dell CERC SATA 1.5/6ch RAID Controller Windows 2003 / MS SQL 2005 / Accpac ERP 1. Upgrade system BIOS, raid controller firmware on windows 2003 2. Attach a new hard disk and configure raid 0, virtual drive #1 3. Move all data on current D drive to new attached drive 4. Back [...]]]></description>
			<content:encoded><![CDATA[<p>Dell PowerEdge  SC1420</p>
<p>Dell CERC SATA 1.5/6ch RAID Controller</p>
<p>Windows 2003 / MS SQL 2005 / Accpac ERP</p>
<p><img class="aligncenter size-medium wp-image-123" title="IMG_0506" src="http://technote.wsjoung.com/wp-content/uploads/2009/12/IMG_0506-225x300.jpg" alt="IMG_0506" width="225" height="300" /></p>
<p>1. Upgrade system BIOS, raid controller firmware on windows 2003</p>
<p>2. Attach a new hard disk and configure raid 0, virtual drive #1</p>
<p>3. Move all data on current D drive to new attached drive</p>
<p>4. Back up C partition as a image: <a href="http://clonezilla.org/" target="_blank">Clonezilla</a></p>
<p>5. Reconfigure hard disk 1 &amp; 2 as raid 1, virtual drive #0</p>
<p>6. Restore backed up C drive image to new reconfigured virtual drive #0</p>
]]></content:encoded>
			<wfw:commentRss>http://technote.wsjoung.com/2009/12/13/server-configuration-job-log/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Server Monitoring Tools</title>
		<link>http://technote.wsjoung.com/2009/11/04/linux-server-monitoring-tools/</link>
		<comments>http://technote.wsjoung.com/2009/11/04/linux-server-monitoring-tools/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 03:33:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Monitoring]]></category>

		<guid isPermaLink="false">http://technote.wsjoung.com/?p=115</guid>
		<description><![CDATA[- Network Monitoring tcptrack iptraf - CPU, Memory Monitoring top free - Disk I/O Monitoring iostat(sysstat)]]></description>
			<content:encoded><![CDATA[<p><strong>- Network Monitoring</strong><br />
tcptrack<br />
iptraf</p>
<p><strong>- CPU, Memory Monitoring</strong><br />
top<br />
free</p>
<p><strong>- Disk I/O Monitoring</strong><br />
iostat(sysstat)</p>
]]></content:encoded>
			<wfw:commentRss>http://technote.wsjoung.com/2009/11/04/linux-server-monitoring-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mount LVM disk</title>
		<link>http://technote.wsjoung.com/2009/09/01/mount-lvm-disk/</link>
		<comments>http://technote.wsjoung.com/2009/09/01/mount-lvm-disk/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 19:03:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[Config]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[LVM]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://technote.wsjoung.com/?p=107</guid>
		<description><![CDATA[#apt-get install lvm2 #pvscan PV /dev/sdb1 VG server-roma lvm2 [136.49 GB / 0 free] Total: 1 [136.49 GB] / in use: 1 [136.49 GB] / in no VG: 0 [0 ] #vgscan Reading all physical volumes. This may take a while&#8230; Found volume group &#8220;server-roma&#8221; using metadata type lvm2 #vgchange -a y 2 logical volume(s) [...]]]></description>
			<content:encoded><![CDATA[<p>#apt-get install lvm2</p>
<p>#pvscan<br />
PV /dev/sdb1   VG server-roma   lvm2 [136.49 GB / 0    free]<br />
Total: 1 [136.49 GB] / in use: 1 [136.49 GB] / in no VG: 0 [0   ]</p>
<p>#vgscan<br />
Reading all physical volumes.  This may take a while&#8230;<br />
Found volume group &#8220;server-roma&#8221; using metadata type lvm2</p>
<p>#<a href="http://linux.about.com/library/cmd/blcmdl8_vgchange.htm" target="_blank">vgchange -a y</a><br />
2 logical volume(s) in volume group &#8220;server-roma&#8221; now active</p>
<p>#lvscan<br />
ACTIVE            &#8216;/dev/server-roma/root&#8217; [130.91 GB] inherit<br />
ACTIVE            &#8216;/dev/server-roma/swap_1&#8242; [5.58 GB] inherit</p>
<p>#mount /dev/server-roma/root /mnt</p>
]]></content:encoded>
			<wfw:commentRss>http://technote.wsjoung.com/2009/09/01/mount-lvm-disk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu server 9.04 grub menu.lst</title>
		<link>http://technote.wsjoung.com/2009/09/01/ubuntu-server-9-04-grub-menu-lst/</link>
		<comments>http://technote.wsjoung.com/2009/09/01/ubuntu-server-9-04-grub-menu-lst/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 18:43:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[Config]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://technote.wsjoung.com/?p=104</guid>
		<description><![CDATA[title           Ubuntu 9.04, kernel 2.6.28-15-server uuid            18173536-b479-4e5f-80f6-a363503b55e1 kernel          /boot/vmlinuz-2.6.28-15-server root=UUID=18173536-b479-4e5f-80f6-a363503b55e1 ro quiet splash initrd          /boot/initrd.img-2.6.28-15-server quiet title           Ubuntu 9.04, kernel 2.6.28-15-server (recovery mode) uuid            18173536-b479-4e5f-80f6-a363503b55e1 kernel   [...]]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">title           Ubuntu 9.04, kernel 2.6.28-15-server</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">uuid            18173536-b479-4e5f-80f6-a363503b55e1</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">kernel          /boot/vmlinuz-2.6.28-15-server root=UUID=18173536-b479-4e5f-80f6-a363503b55e1 ro quiet splash</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">initrd          /boot/initrd.img-2.6.28-15-server</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">quiet</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">title           Ubuntu 9.04, kernel 2.6.28-15-server (recovery mode)</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">uuid            18173536-b479-4e5f-80f6-a363503b55e1</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">kernel          /boot/vmlinuz-2.6.28-15-server root=UUID=18173536-b479-4e5f-80f6-a363503b55e1 ro  single</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">initrd          /boot/initrd.img-2.6.28-15-server</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">title           Ubuntu 9.04, kernel 2.6.28-11-server</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">uuid            18173536-b479-4e5f-80f6-a363503b55e1</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">kernel          /boot/vmlinuz-2.6.28-11-server root=UUID=18173536-b479-4e5f-80f6-a363503b55e1 ro quiet splash</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">initrd          /boot/initrd.img-2.6.28-11-server</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">quiet</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">title           Ubuntu 9.04, kernel 2.6.28-11-server (recovery mode)</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">uuid            18173536-b479-4e5f-80f6-a363503b55e1</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">kernel          /boot/vmlinuz-2.6.28-11-server root=UUID=18173536-b479-4e5f-80f6-a363503b55e1 ro  single</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">initrd          /boot/initrd.img-2.6.28-11-server</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">title           Ubuntu 9.04, memtest86+</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">uuid            18173536-b479-4e5f-80f6-a363503b55e1</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">kernel          /boot/memtest86+.bin</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">quiet</div>
<p>/boot/grub/menu.lst</p>
<p>title           Ubuntu 9.04, kernel 2.6.28-15-server<br />
uuid            18173536-b479-4e5f-80f6-a363503b55e1<br />
kernel          /boot/vmlinuz-2.6.28-15-server root=UUID=18173536-b479-4e5f-80f6-a363503b55e1 ro quiet splash<br />
initrd          /boot/initrd.img-2.6.28-15-server<br />
quiet</p>
<p>title           Ubuntu 9.04, kernel 2.6.28-15-server (recovery mode)<br />
uuid            18173536-b479-4e5f-80f6-a363503b55e1<br />
kernel          /boot/vmlinuz-2.6.28-15-server root=UUID=18173536-b479-4e5f-80f6-a363503b55e1 ro  single<br />
initrd          /boot/initrd.img-2.6.28-15-server</p>
<p>title           Ubuntu 9.04, memtest86+<br />
uuid            18173536-b479-4e5f-80f6-a363503b55e1<br />
kernel          /boot/memtest86+.bin<br />
quiet</p>
<div></div>
]]></content:encoded>
			<wfw:commentRss>http://technote.wsjoung.com/2009/09/01/ubuntu-server-9-04-grub-menu-lst/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>pure-ftpd-mysql, [ERROR] Home directory not available &#8211; aborting</title>
		<link>http://technote.wsjoung.com/2008/04/15/pure-ftpd-mysql-error-home-directory-not-available-aborting/</link>
		<comments>http://technote.wsjoung.com/2008/04/15/pure-ftpd-mysql-error-home-directory-not-available-aborting/#comments</comments>
		<pubDate>Tue, 15 Apr 2008 15:49:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[System]]></category>
		<category><![CDATA[Config]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://wsjoung.wordpress.com/?p=80</guid>
		<description><![CDATA[groupadd -g 2001 ftpgroup useradd -u 2001 -s /bin/false -d /bin/null -c &#8220;pureftpd user&#8221; -g ftpgroup ftpuser Instead of this dummy ftpuser account setting when they want to create real linux account. they may get this error &#8220;Home directory not available &#8211; abort&#8221; even if they set CreateHomeDir to yes. Solution: the last existing in [...]]]></description>
			<content:encoded><![CDATA[<p>groupadd -g 2001 ftpgroup<br />
useradd -u 2001 -s /bin/false -d /bin/null -c &#8220;pureftpd user&#8221; -g ftpgroup ftpuser</p>
<p>Instead of this dummy ftpuser account setting when they want to create real linux account.<br />
they may get this error &#8220;Home directory not available &#8211; abort&#8221; even if they set CreateHomeDir to yes.</p>
<p>Solution:<br />
the last existing in the home path should be own by root.<br />
for example, we want to create somebody&#8217;s home directory when he log in, /home/ftpuser/somebody<br />
then the last existing directory &#8216;ftpuer&#8217; may look like this,<br />
drwxr-xr-x 2 <strong>root</strong> ftpgroup 4096 2008-04-15 11:20 ftpuser</p>
<p><a href="http://ecartis.ausics.net/hypermail/pure-old/0171.html">[pure-ftpd] CreateHomeDir problem (&#8220;[ERROR] Home directory not available &#8211; aborting&#8221;)</a><br />
<a href="http://howtoforge.com/virtual-hosting-with-pureftpd-and-mysql-ubuntu-7.10">Virtual Hosting With PureFTPd And MySQL (Incl. Quota And Bandwidth Management) On Ubuntu 7.10 (Gutsy Gibbon)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://technote.wsjoung.com/2008/04/15/pure-ftpd-mysql-error-home-directory-not-available-aborting/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>DataSource setup on Tomcat</title>
		<link>http://technote.wsjoung.com/2007/09/21/datasource-setup-on-tomcat/</link>
		<comments>http://technote.wsjoung.com/2007/09/21/datasource-setup-on-tomcat/#comments</comments>
		<pubDate>Fri, 21 Sep 2007 20:38:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Tomcat]]></category>

		<guid isPermaLink="false">http://wsjoung.wordpress.com/2007/09/21/datasource-setup-on-tomcat/</guid>
		<description><![CDATA[1. create META-INF/context.xml &#60;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&#62; &#60;Context docBase=&#8221;e-sports&#8221; path=&#8221;/e-sports&#8221; debug=&#8221;0&#8243; reloadable=&#8221;true&#8221; source=&#8221;org.eclipse.jst.j2ee.server:e-sports&#8221;&#62; &#60;Logger className=&#8221;org.apache.catalina.logger.FileLogger&#8221; prefix=&#8221;e-sports_log.&#8221; suffix=&#8221;.txt&#8221; timestamp=&#8221;true&#8221; /&#62; &#60;Resource name=&#8221;jdbc/myoracle&#8221; auth=&#8221;Container&#8221; type=&#8221;javax.sql.DataSource&#8221; driverClassName=&#8221;oracle.jdbc.driver.OracleDriver&#8221; factory=&#8221;org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory&#8221; url=&#8221;jdbc:oracle:thin:@127.0.0.1:1521:ORA92&#8243; username=&#8221;scott&#8221; password=&#8221;tiger&#8221; maxActive=&#8221;20&#8243; maxIdle=&#8221;10&#8243; maxWait=&#8221;-1&#8243; /&#62; &#60;/Context&#62; 2. test.jsp &#60;%@ page import=&#8221;java.sql.Connection&#8221; %&#62; &#60;%@ page import=&#8221;java.sql.ResultSet&#8221; %&#62; &#60;%@ page import=&#8221;java.sql.SQLException&#8221; %&#62; &#60;%@ page import=&#8221;java.sql.Statement&#8221; %&#62; &#60;%@ page import=&#8221;javax.naming.Context&#8221; %&#62; &#60;%@ [...]]]></description>
			<content:encoded><![CDATA[<p>1. create META-INF/context.xml</p>
<p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&gt;<br />
&lt;Context docBase=&#8221;e-sports&#8221; path=&#8221;/e-sports&#8221; debug=&#8221;0&#8243; reloadable=&#8221;true&#8221;<br />
source=&#8221;org.eclipse.jst.j2ee.server:e-sports&#8221;&gt;<br />
&lt;Logger className=&#8221;org.apache.catalina.logger.FileLogger&#8221;<br />
prefix=&#8221;e-sports_log.&#8221; suffix=&#8221;.txt&#8221; timestamp=&#8221;true&#8221; /&gt;<br />
&lt;Resource name=&#8221;jdbc/myoracle&#8221;<br />
auth=&#8221;Container&#8221;<br />
type=&#8221;javax.sql.DataSource&#8221;<br />
driverClassName=&#8221;oracle.jdbc.driver.OracleDriver&#8221;<br />
factory=&#8221;org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory&#8221;<br />
url=&#8221;jdbc:oracle:thin:@127.0.0.1:1521:ORA92&#8243;<br />
username=&#8221;scott&#8221;<br />
password=&#8221;tiger&#8221;<br />
maxActive=&#8221;20&#8243;<br />
maxIdle=&#8221;10&#8243;<br />
maxWait=&#8221;-1&#8243; /&gt;<br />
&lt;/Context&gt;</p>
<p>2. test.jsp<br />
&lt;%@ page import=&#8221;java.sql.Connection&#8221; %&gt;<br />
&lt;%@ page import=&#8221;java.sql.ResultSet&#8221; %&gt;<br />
&lt;%@ page import=&#8221;java.sql.SQLException&#8221; %&gt;<br />
&lt;%@ page import=&#8221;java.sql.Statement&#8221; %&gt;<br />
&lt;%@ page import=&#8221;javax.naming.Context&#8221; %&gt;<br />
&lt;%@ page import=&#8221;javax.naming.InitialContext&#8221; %&gt;<br />
&lt;%@ page import=&#8221;javax.naming.NamingException&#8221; %&gt;<br />
&lt;%@ page import=&#8221;javax.sql.DataSource&#8221; %&gt;</p>
<p>&lt;%<br />
Context ctx = null;<br />
DataSource source = null;<br />
Connection con = null;</p>
<p>try {<br />
ctx = new InitialContext();<br />
ctx = (Context) ctx.lookup(&#8220;java:comp/env&#8221;);<br />
source = (DataSource) ctx.lookup(&#8220;jdbc/myoracle&#8221;);</p>
<p>System.out.println(&#8220;DataSource   ===========================&#8221;+ source);</p>
<p>con = source.getConnection();<br />
System.out.println(&#8220;Connection ============================&#8221;+ con);<br />
} catch (NamingException ne) {<br />
ne.printStackTrace();<br />
}<br />
%&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://technote.wsjoung.com/2007/09/21/datasource-setup-on-tomcat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mod_rewrite: Apache URL Rewriting</title>
		<link>http://technote.wsjoung.com/2007/01/24/mod_rewrite-apache-url-rewriting/</link>
		<comments>http://technote.wsjoung.com/2007/01/24/mod_rewrite-apache-url-rewriting/#comments</comments>
		<pubDate>Wed, 24 Jan 2007 03:41:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Config]]></category>
		<category><![CDATA[mod_rewrite]]></category>

		<guid isPermaLink="false">http://wsjoung.wordpress.com/2007/01/24/mod_rewrite-apache-url-rewriting/</guid>
		<description><![CDATA[People loves to apply MVC model pretty much on their web application project. They likely put a controller which takes user input from the request and figures out what it means to the model. In this case, URL may looks like this, “index.php?category=sub”. It’s not pretty at all. If we can make this “category/sub”. it [...]]]></description>
			<content:encoded><![CDATA[<p class="snap_preview">People loves to apply MVC model pretty much on their web application project. They likely put a controller which takes user input from the request and figures out what it means to the model. In this case, URL may looks like this, “index.php?category=sub”. It’s not pretty at all. If we can make this “category/sub”. it would be much better for search engine and users; security reason as well.</p>
<p><a href="http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html">Module mod_rewrite URL Rewriting Engine</a><br />
<a href="http://www.workingwith.me.uk/articles/scripting/mod_rewrite">mod_rewrite, a beginner’s guide (with examples)</a><br />
<a href="http://www.sitepoint.com/print/guide-url-rewriting">mod_rewrite: A Beginner’s Guide to URL Rewriting</a><br />
<a href="http://www.ilovejackdaniels.com/apache/mod_rewrite-cheat-sheet/">mod_rewrite Cheat Sheet</a></p>
]]></content:encoded>
			<wfw:commentRss>http://technote.wsjoung.com/2007/01/24/mod_rewrite-apache-url-rewriting/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Samba Setting: Secure Read-Write File and Print Server</title>
		<link>http://technote.wsjoung.com/2006/11/17/samba-setting-secure-read-write-file-and-print-server/</link>
		<comments>http://technote.wsjoung.com/2006/11/17/samba-setting-secure-read-write-file-and-print-server/#comments</comments>
		<pubDate>Fri, 17 Nov 2006 00:51:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[System]]></category>
		<category><![CDATA[Config]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://wsjoung.wordpress.com/2006/11/17/samba-setting-secure-read-write-file-and-print-server/</guid>
		<description><![CDATA[Secure Read-Write File and Print Server We progress now from simple systems to a server that is slightly more complex. Our new server will require a public data storage area in which only authenticated users (i.e., those with a local account) can store files, as well as a home directory. There will be one printer [...]]]></description>
			<content:encoded><![CDATA[<p>Secure Read-Write File and Print Server</p>
<p>We progress now from simple systems to a server that is slightly more complex.</p>
<p>Our new server will require a public data storage area in which only authenticated users (i.e., those with a local account) can store files, as well as a home directory. There will be one printer that should be available for everyone to use.</p>
<p>In this hypothetical environment (no espionage was conducted to obtain this data), the site is demanding a simple environment that is secure enough but not too difficult to use.</p>
<p>Site users will be Jack Baumbach, Mary Orville, and Amed Sehkah. Each will have a password (not shown in further examples). Mary will be the printer administrator and will own all files in the public share.</p>
<p>This configuration will be based on user-level security that is the default, and for which the default is to store Microsoft Windows-compatible encrypted passwords in a file called /etc/samba/smbpasswd. The default smb.conf entry that makes this happen is passdb backend = smbpasswd, guest. Since this is the default, it is not necessary to enter it into the configuration file. Note that the guest backend is added to the list of active passdb backends no matter whether it specified directly in Samba configuration file or not.</p>
<p>Procedure 2.2. Installing the Secure Office Server</p>
<p>Example 2.4. Secure Office Server smb.conf<br />
# Global parameters<br />
[global]<br />
workgroup = MIDEARTH<br />
netbios name = OLORIN<br />
printcap name = cups<br />
disable spoolss = Yes<br />
show add printer wizard = No<br />
printing = cups<br />
[homes]<br />
comment = Home Directories<br />
valid users = %S<br />
read only = No<br />
browseable = No<br />
[public]<br />
comment = Data<br />
path = /export<br />
force user = maryo<br />
force group = users<br />
guest ok = Yes<br />
read only = No<br />
[printers]<br />
comment = All Printers<br />
path = /var/spool/samba<br />
printer admin = root, maryo<br />
create mask = 0600<br />
guest ok = Yes<br />
printable = Yes<br />
use client driver = Yes<br />
browseable = No</p>
<p><strong>1. Add all users to the operating system:</strong><br />
root# useradd -c &#8220;Jack Baumbach&#8221; -m -g users -p m0r3pa1n jackb<br />
root# useradd -c &#8220;Mary Orville&#8221; -m -g users -p secret maryo<br />
root# useradd -c &#8220;Amed Sehkah&#8221; -m -g users -p secret ameds</p>
<p><strong>2. Configure the Samba smb.conf file as shown above</strong></p>
<p><strong>3. Initialize the Microsoft Windows password database with the new users:</strong><br />
root# smbpasswd -a root<br />
New SMB password: bigsecret<br />
Reenter smb password: bigsecret<br />
Added user root.</p>
<p>root# smbpasswd -a jackb<br />
New SMB password: m0r3pa1n<br />
Retype new SMB password: m0r3pa1n<br />
Added user jackb.</p>
<p>root# smbpasswd -a maryo<br />
New SMB password: secret<br />
Reenter smb password: secret<br />
Added user maryo.</p>
<p>root# smbpasswd -a ameds<br />
New SMB password: mysecret<br />
Reenter smb password: mysecret<br />
Added user ameds.</p>
<p><strong>4. Install printer using the CUPS Web interface. Make certain that all printers that will be shared with Microsoft Windows clients are installed as raw printing devices.</strong></p>
<p><strong>5. Start Samba using the operating system administrative interface. Alternately, this can be done manually by executing:</strong></p>
<p>root#  nmbd; smbd;</p>
<p>Both applications automatically execute as daemons. Those who are paranoid about maintaining control can add the -D flag to coerce them to start up in daemon mode.</p>
<p><strong>6. Configure the /export directory:</strong><br />
root# mkdir /export<br />
root# chown maryo.users /export<br />
root# chmod u=rwx,g=rwx,o-rwx /export</p>
<p><strong>7. Check that Samba is running correctly:</strong><br />
root# smbclient -L localhost -U%</p>
<p>The following error message indicates that Samba was not running:<br />
Error connecting to 192.168.1.40 (Connection refused)<br />
Connection to olorin failed</p>
<p><strong>8. Connect to OLORIN as maryo:</strong><br />
root# smbclient //olorin/maryo -Umaryo%secret<br />
OS=[UNIX] Server=[Samba-3.0.20]<br />
smb: \&gt; dir<br />
smb: \&gt; q</p>
<p>By now you should be getting the hang of configuration basics. Clearly, it is time to explore slightly more complex examples. For the remainder of this chapter we abbreviate instructions, since there are previous examples.</p>
<p><a href="http://us2.samba.org/samba/docs/man/Samba-HOWTO-Collection/index.html">The Official Samba-3 HOWTO and Reference Guide</a></p>
]]></content:encoded>
			<wfw:commentRss>http://technote.wsjoung.com/2006/11/17/samba-setting-secure-read-write-file-and-print-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
