<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<channel><generator>http://textpattern.com/?v=4.0.6</generator>
<title>Ryan J. Bonnell - journal</title>
<link>http://ryanjbonnell.com/</link>

<description>La Dolce Vita</description>
<pubDate>Thu, 21 Feb 2008 03:00:28 GMT</pubDate>

<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/ryanjbonnell" type="application/rss+xml" /><item><title>How-To: Clear DNS Resolver Cache</title>
<description>
<![CDATA[<p>On Windows 2000/XP/Vista, run this command from a <span class="caps">DOS</span> prompt:</p>

<pre><code>ipconfig /flushdns</code></pre>

	<p>On Mac OS X 10.1 &#8211; 10.4 open /Applications/Utilities/Terminal.app and execute this command:</p>

<pre><code>sudo lookupd -flushcache</code></pre>

	<p>On Mac OS X &#8220;Leopard&#8221; 10.5+ open /Applications/Utilities/Terminal.app and execute this command:</p>

<pre><code>sudo dscacheutil -flushcache</code></pre>

	<p>Reboot your computer, and your operating system&#8217;s <acronym title="Domain Name Service"><span class="caps">DNS</span></acronym> cache should be cleared.</p>]]>
</description>
<link>http://ryanjbonnell.com/journal/flush-cache</link>
<pubDate>Mon, 18 Feb 2008 11:55:38 GMT</pubDate>
<dc:creator>Ryan J. Bonnell</dc:creator>
<guid isPermaLink="false">tag:ryanjbonnell.com,2008-02-18:a323e649a3f7001dbd43fc326bdde6e1/fe994864a0ba58ed78159d64311bb982</guid>
</item>
<item><title>How-To: Add Additional FTP Users to Domain in Plesk</title>
<description>
<![CDATA[<p>Assuming you already have an existing domain setup (example.com) with the primary <span class="caps">FTP</span> user (john) and password (doe) with home directory (/var/www/vhosts/domain.com), and you wish to create additional <span class="caps">FTP</span> users (jack and jill) with the same access privileges as john:</p>

	<p># Login to the server as root<br />
<code>ssh root@domain.com</code></p>

	<p>#  Execute the following shell command for the user&#8217;s account you wish to mimic<br />
<code>cat /etc/passwd | grep &#39;john&#39;</code></p>

	<p>This will show you a line similar to the following:</p>

	<p><code>john:x:10041:2523::/var/www/vhosts/example.com:/usr/local/psa/bin/chrootsh</code></p>

	<p>The first number (after the second colon) is 10041, so this is the <span class="caps">UID</span> of user &#8220;john&#8221;. You will need this in the <code>useradd</code> lines since <code>useradd</code> wants a number for the <span class="caps">UID</span>.</p>

	<p>#  Create the additional <span class="caps">FTP</span> user with a &#8220;jailed&#8221; home directory in <code>/httpdocs</code> directory<br />
<code>useradd -u 10041 -o -d /var/www/vhosts/example.com -g psacln -s /usr/local/psa/bin/chrootsh jack</code></p>

	<p>#  Create the additional <span class="caps">FTP</span> user with a &#8220;jailed&#8221; home directory in <code>/web_users</code> directory<br />
<code>useradd -u 10041 -o -d /var/www/vhosts/example.com -g psaserv -s /usr/local/psa/bin/chrootsh jack</code></p>

	<p>#  Give the user a password<br />
<code>passwd jack</code></p>

	<p>Even without stopping/restarting the <span class="caps">FTP</span>d daemon, you should now be able login as with the new <span class="caps">FTP</span> user (jack) and access the same directories <strong><em>and with the same permissions</em></strong> as the primary domain user (john).</p>

	<p>All new <span class="caps">FTP</span> accounts created using this method should have the same &#8220;shared&#8221; access to files since they all belong to the same group &#8212;  no matter which of the users created or edited the file(s), all should be able to access/edit/whatever the same files.</p>

	<p>As an additional benefit, the new user account is &#8220;jailed&#8221; to his/her home directory and cannot view the contents of other directories outside their home directory.</p>

	<p>The only caveat to this aproach is that these users defined at the Operating System level, so their accounts or passwords cannot be changed through Plesk &#8212; but it&#8217;s a trade-off most people will glady accept for the improved functionality.</p>

	<p>For a discussion on this topic, see <a href="http://forum.swsoft.com/pda/index.php/t-37495.html">http://forum.swsoft.com/pda/index.php/t-37495.html</a></p>]]>
</description>
<link>http://ryanjbonnell.com/journal/ftp-account</link>
<pubDate>Tue, 29 Jan 2008 17:25:07 GMT</pubDate>
<dc:creator>Ryan J. Bonnell</dc:creator>
<guid isPermaLink="false">tag:ryanjbonnell.com,2008-01-29:a323e649a3f7001dbd43fc326bdde6e1/31569a3fd85d408bbd51e1d3ad0a7c6f</guid>
</item>
<item><title>Fix Airport Self-Assigned IP Address Leopard</title>
<description>
<![CDATA[<p>I spent many hours researching, troubleshooting, and trying to find a solution to my Apple PowerBook getting an Airport self-assigned IP address.</p>

	<p>This problem seemed to originate after I installed the <a href="http://www.apple.com/support/downloads/loginkeychainupdate10.html">Login and Keychain Update 1.0</a> <em>(30 October 2007)</em> for Mac OS X &#8220;Leopard&#8221; 10.5.</p>

	<p>The steps that worked for me was to:</p>

	<ol>
		<li>Delete the Airport preference file <code>/Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist</code></li>
		<li>Verify/Repair my Login Keychain using <kbd>Utilities &#62; Keychain Access</kbd></li>
		<li><a href="http://docs.info.apple.com/article.html?artnum=306879">Reboot into Safe Mode</a> (by holding down the <kbd>Shift</kbd> key during startup)</li>
		<li>Turn my computer off, then boot up normally.</li>
	</ol>

	<p>I have read other user reports that had success by disabling the &#8220;Back to My Mac&#8221; .Mac feature, creating a new Network Location, or by disabling and re-enabling Airport access whereby triggering a &#8220;Renewing <span class="caps">DHCP</span> Lease&#8221;.</p>]]>
</description>
<link>http://ryanjbonnell.com/journal/self-assigned</link>
<pubDate>Wed, 02 Jan 2008 18:48:21 GMT</pubDate>
<dc:creator>Ryan J. Bonnell</dc:creator>
<guid isPermaLink="false">tag:ryanjbonnell.com,2008-01-01:a323e649a3f7001dbd43fc326bdde6e1/cac3f4c6cbfd06a25ab1141012220429</guid>
</item>
<item><title>Install Nano RPM on Plesk 8.2.1</title>
<description>
<![CDATA[<p>These instructions are mainly for my internal reference, but for the sake of you &#8212; <em>oh glorious reader</em> &#8212; I&#8217;ve decided to share my recipe.</p>

	<p>To install <a href="http://www.nano-editor.org/">nano</a> (clone of the Pico text editor) on a Linux-based <span class="caps">SWS</span>oft Plesk server, run the following commands &#8212; assuming you have root access:</p>

	<ol>
		<li><code>ssh root@domain.com</code></li>
		<li><code>cd /usr/local/src</code></li>
		<li><code>wget http://www.nano-editor.org/dist/v2.0/nano-2.0.3.tar.gz</code></li>
		<li><code>tar zxvf nano-2.0.3.tar.gz</code></li>
		<li><code>cd nano-2.0.3</code></li>
		<li><code>./configure</code></li>
		<li><code>make</code></li>
		<li><code>make install</code></li>
	</ol>

	<p>To test the installation, simply run the executable from the command line: <code>nano</code></p>]]>
</description>
<link>http://ryanjbonnell.com/journal/install-nano</link>
<pubDate>Tue, 01 Jan 2008 18:18:31 GMT</pubDate>
<dc:creator>Ryan J. Bonnell</dc:creator>
<guid isPermaLink="false">tag:ryanjbonnell.com,2008-01-01:a323e649a3f7001dbd43fc326bdde6e1/7e9435b11ba647b73c2a2e0c836ebb78</guid>
</item>
<item><title>Plesk 8.2.1 Shell Commands</title>
<description>
<![CDATA[<p># Start/Stop Qmail<br />
<code>service qmail stop</code><br />
<code>service qmail start</code><br />
<code>service qmail status</code></p>

	<p># View Qmail log file<br />
<code>tail -f /usr/local/psa/var/log/maillog</code></p>

	<p># Rebuild Qmail configuration files<br />
<code>/usr/local/psa/admin/sbin/mchk -v</code></p>

	<p># View Qmail mailbox locations in Plesk<br />
<code>cd /var/qmail/mailnames/</code></p>

	<p># List the total size of all mailboxes<br />
<code>cd /var/qmail/mailnames/; du -h --summarize</code></p>

	<p># List the size of each mailbox, shown under its domain<br />
<code>cd /var/qmail/mailnames/; du -h --max-depth=2</code></p>]]>
</description>
<link>http://ryanjbonnell.com/journal/plesk-commands</link>
<pubDate>Sun, 30 Dec 2007 07:20:04 GMT</pubDate>
<dc:creator>Ryan J. Bonnell</dc:creator>
<guid isPermaLink="false">tag:ryanjbonnell.com,2007-12-30:a323e649a3f7001dbd43fc326bdde6e1/05f0712fb173a4a645077d4d082b6b3e</guid>
</item></channel>
</rss>
