<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>remain calm</title>
	<atom:link href="http://hachman.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://hachman.wordpress.com</link>
	<description>I really don't know what I'm doing.</description>
	<lastBuildDate>Wed, 03 Nov 2010 16:18:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='hachman.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>remain calm</title>
		<link>http://hachman.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://hachman.wordpress.com/osd.xml" title="remain calm" />
	<atom:link rel='hub' href='http://hachman.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Trouble finding a program in a Yum repo?</title>
		<link>http://hachman.wordpress.com/2010/11/03/trouble-finding-a-program-in-a-yum-repo/</link>
		<comments>http://hachman.wordpress.com/2010/11/03/trouble-finding-a-program-in-a-yum-repo/#comments</comments>
		<pubDate>Wed, 03 Nov 2010 16:17:15 +0000</pubDate>
		<dc:creator>hachman</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://hachman.wordpress.com/?p=37</guid>
		<description><![CDATA[Use this command to find the file inside of a package. $ yum whatprovides "*executable" Such as: $ yum whatprovides "*uuencode" sharutils-4.6.1-2.x86_64 : The GNU shar utilities for packaging and unpackaging shell archives. Repo : base Matched from: Filename : /usr/bin/uuencode<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hachman.wordpress.com&amp;blog=5501495&amp;post=37&amp;subd=hachman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Use this command to find the file inside of a package.</p>
<p><code>$ yum whatprovides "*executable"</code></p>
<p>Such as:</p>
<p><code>$ yum whatprovides "*uuencode"<br />
sharutils-4.6.1-2.x86_64 : The GNU shar utilities for packaging and unpackaging shell archives.<br />
Repo        : base<br />
Matched from:<br />
Filename    : /usr/bin/uuencode</p>
<p></code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hachman.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hachman.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hachman.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hachman.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hachman.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hachman.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hachman.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hachman.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hachman.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hachman.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hachman.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hachman.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hachman.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hachman.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hachman.wordpress.com&amp;blog=5501495&amp;post=37&amp;subd=hachman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hachman.wordpress.com/2010/11/03/trouble-finding-a-program-in-a-yum-repo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">hachman</media:title>
		</media:content>
	</item>
		<item>
		<title>Updating clients after moving a Ghost server</title>
		<link>http://hachman.wordpress.com/2010/02/01/updating-clients-after-moving-a-ghost-server/</link>
		<comments>http://hachman.wordpress.com/2010/02/01/updating-clients-after-moving-a-ghost-server/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 05:10:17 +0000</pubDate>
		<dc:creator>hachman</dc:creator>
				<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Symantec Ghost]]></category>

		<guid isPermaLink="false">http://hachman.wordpress.com/?p=29</guid>
		<description><![CDATA[We recently moved our Symantec Ghost Console server to a new machine with a new hostname and a new IP address. This meant that all of our client machines would still be looking for the old server hostname. Unfamiliar with how the client communicated with the server, our original plan was to just put in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hachman.wordpress.com&amp;blog=5501495&amp;post=29&amp;subd=hachman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We recently moved our Symantec Ghost Console server to a new machine with a new hostname and a new IP address.  This meant that all of our client machines would still be looking for the old server hostname.  Unfamiliar with how the client communicated with the server, our original plan was to just put in a DNS A record which would point the old server hostname to the new server&#8217;s IP address.  After getting the new server up we discovered that this would not work.  Everything we read online indicated that the clients would have to be uninstalled and re-installed to connect to the new server.  Not good.  We have about 300 machines and this would be a daunting task to undertake.  Ghost provides a method to mass install the client, but this only works when the client is not already installed on a remote machine.  The ability to uninstall through the console is there but you cannot select multiples, it&#8217;s one at a time.  Forget that.  I had a thought in the begining that I could write some sort of batch script to perform an uninstallation with the msi and some command line switches and use psexec to run it against all of our client machines.  While starting to research this theory I came across a <a href="http://service1.symantec.com/SUPPORT/on-technology.nsf/docid/2001121715570925">Symantec article</a> which explained how to &#8220;Bind a client to a different console&#8221;.  This method involves replacing the pubkey.crt file on the client with the pubkey.crt file from the new server, or if you only have one server just delete the pubkey.crt file from the client and it will connect to the first Ghost server it finds and create the file itself.  Perfect.  So I write my batch script to do a net stop on the Ghost client service, delete the pubkey.crt, start the Ghost client service, and be on my merry way.  I used the handy psexec tool to remote execute the script on my text file list of hosts and whallah, all of my clients are now in the new Ghost console.</p>
<p>The script:<br />
<code>@echo off<br />
net stop "Symantec Ghost Client Agent"<br />
del "%systemdrive%\Program Files\Symantec\Ghost\pubkey.crt"<br />
net start "Symantec Ghost Client Agent"<br />
</code></p>
<p>psexec syntax:<br />
<code>psexec @hostnames_sw.txt -c ghost.bat &gt; ghost_fix.log</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hachman.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hachman.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hachman.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hachman.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hachman.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hachman.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hachman.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hachman.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hachman.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hachman.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hachman.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hachman.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hachman.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hachman.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hachman.wordpress.com&amp;blog=5501495&amp;post=29&amp;subd=hachman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hachman.wordpress.com/2010/02/01/updating-clients-after-moving-a-ghost-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">hachman</media:title>
		</media:content>
	</item>
		<item>
		<title>Checking for DFS replication backlog between servers</title>
		<link>http://hachman.wordpress.com/2009/12/30/checking-for-dfs-replication-backlog-between-servers/</link>
		<comments>http://hachman.wordpress.com/2009/12/30/checking-for-dfs-replication-backlog-between-servers/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 16:12:52 +0000</pubDate>
		<dc:creator>hachman</dc:creator>
				<category><![CDATA[Windows Server]]></category>

		<guid isPermaLink="false">http://hachman.wordpress.com/?p=23</guid>
		<description><![CDATA[When using DFS replication there may be times where a backlog of files has built up, usually caused by a member being offline for an extended period of time.   To see how many files are backlogged, and a listing of the latest 100 files in the queue you can use the dfsrdiag command line utility.  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hachman.wordpress.com&amp;blog=5501495&amp;post=23&amp;subd=hachman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When using DFS replication there may be times where a backlog of files has built up, usually caused by a member being offline for an extended period of time.   To see how many files are backlogged, and a listing of the latest 100 files in the queue you can use the dfsrdiag command line utility.  This utility should be run from one of the replication members.</p>
<p>If I had two servers, StayPuffed and DontCrossTheStreams and these servers had a replication group named KeyMaster and a folder named Gatekeeper.  If StayPuffed was offline for two days and once brought back up I wanted to check the backlog I would issue the following.</p>
<pre>dfsrdiag backlog /rgname:KeyMaster /rfname:Gatekeeper /sendingmember:DontCrossTheStreams
 /receivingmember:StayPuffed</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hachman.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hachman.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hachman.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hachman.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hachman.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hachman.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hachman.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hachman.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hachman.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hachman.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hachman.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hachman.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hachman.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hachman.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hachman.wordpress.com&amp;blog=5501495&amp;post=23&amp;subd=hachman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hachman.wordpress.com/2009/12/30/checking-for-dfs-replication-backlog-between-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">hachman</media:title>
		</media:content>
	</item>
		<item>
		<title>jailing a ftp user with proftpd</title>
		<link>http://hachman.wordpress.com/2009/02/25/jailing-a-ftp-user-with-proftpd/</link>
		<comments>http://hachman.wordpress.com/2009/02/25/jailing-a-ftp-user-with-proftpd/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 20:57:34 +0000</pubDate>
		<dc:creator>hachman</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://hachman.wordpress.com/?p=14</guid>
		<description><![CDATA[If you want to give ftp access to a certain subdirectory on your Linux box, but restrict that user from being able to read anything else on the filesystem you can do so using proftpd Download the tarball and extract the archive curl ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.2.tar.gz &#124; tar xz Now it&#8217;s the standard ./configure, make, make install routine [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hachman.wordpress.com&amp;blog=5501495&amp;post=14&amp;subd=hachman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you want to give ftp access to a certain subdirectory on your Linux box, but restrict that user from being able to read anything else on the filesystem you can do so using <a title="proftpd" href="http://www.proftpd.org/" target="_blank">proftpd</a></p>
<p>Download the tarball and extract the archive</p>
<pre>curl ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.2.tar.gz | tar xz</pre>
<p>Now it&#8217;s the standard ./configure, make, make install routine</p>
<p>After installing open the config file.  On Redhat you will find it at /usr/local/etc/proftpd.conf</p>
<p>Uncomment the line #DefaultRoot ~</p>
<p>This will cause your users to be &#8220;jailed&#8221; into their home directory, any other directory can be specified here if desired</p>
<p>Make note of the User and Group values, these will need to exist on your system for the server to start</p>
<p>Also note the setting Limit SITE_CHMOD which is set to DenyAll by default, this will keep ftp users from being able to change file or directory permissions</p>
<p>Remove or comment out all lines in the Anonymous section to prevent anonymous ftp connections</p>
<p>Save and exit the config file.  You should now be able to start the ftp server</p>
<pre>/usr/local/sbin/proftpd</pre>
<p>You should be able to log in with any local account username and password, and your home directory will be listed.  You should not be able to CD to the parent directory or any other directory outside of your home directory.</p>
<p>Now, the purpose of setting up a ftp in this manor is to restrict access to the rest of your filesystem.  If you create Linux accounts for ftp users they will by default have shell access to the server.  The following steps will allow you to deny shell access to the user while still allowing them to log into the ftp server.</p>
<p>Create a file called /bin/ftpaccess with the following contents</p>
<pre>#!/bin/bash
echo "This account is for ftp access only"</pre>
<p>Give the file execute permissions</p>
<pre>chmod a+x /bin/ftpaccess</pre>
<p>Add the file to your list of shells, usually found at /etc/shells</p>
<p>Change the user&#8217;s default shell to your newly created &#8220;shell&#8221;</p>
<pre>usermod -s /bin/ftpaccess ftpuser</pre>
<p>This user should not be able to log into the shell either locally or via SSH/telnet</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hachman.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hachman.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hachman.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hachman.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hachman.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hachman.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hachman.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hachman.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hachman.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hachman.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hachman.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hachman.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hachman.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hachman.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hachman.wordpress.com&amp;blog=5501495&amp;post=14&amp;subd=hachman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hachman.wordpress.com/2009/02/25/jailing-a-ftp-user-with-proftpd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">hachman</media:title>
		</media:content>
	</item>
		<item>
		<title>Limiting a Linux account to SFTP only</title>
		<link>http://hachman.wordpress.com/2009/02/16/limiting-a-linux-shell-account-to-sftp-only/</link>
		<comments>http://hachman.wordpress.com/2009/02/16/limiting-a-linux-shell-account-to-sftp-only/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 18:04:55 +0000</pubDate>
		<dc:creator>hachman</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://hachman.wordpress.com/?p=6</guid>
		<description><![CDATA[If you need to allow a user to connect to your Linux server with SFTP but do not want to give them the ability to log in via SSH you can do the following: Add the user account and set the home directory to where you want their root directory to be. useradd -d /path/to/files/ [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hachman.wordpress.com&amp;blog=5501495&amp;post=6&amp;subd=hachman&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you need to allow a user to connect to your Linux server with SFTP but do not want to give them the ability to log in via SSH you can do the following:</p>
<p>Add the user account and set the home directory to where you want their root directory to be.</p>
<p>useradd -d /path/to/files/ username</p>
<p>Set the user&#8217;s password</p>
<p>passwd username</p>
<p>Modify the user&#8217;s shell to use the &#8220;sftp-server&#8221; shell included in the lib directory (path may vary)</p>
<p>usermod -s /usr/libexec/openssh/sftp-server username</p>
<p>Add the &#8220;sftp-server&#8221; shell to your system shells</p>
<p>echo &#8216;/usr/libexec/openssh/sftp-server&#8217; &gt;&gt; /etc/shells</p>
<p>or</p>
<p>vim /etc/shells and add the path manually</p>
<p>The user should now be allowed to login via SFTP only.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hachman.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hachman.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hachman.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hachman.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hachman.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hachman.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hachman.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hachman.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hachman.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hachman.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hachman.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hachman.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hachman.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hachman.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hachman.wordpress.com&amp;blog=5501495&amp;post=6&amp;subd=hachman&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hachman.wordpress.com/2009/02/16/limiting-a-linux-shell-account-to-sftp-only/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">hachman</media:title>
		</media:content>
	</item>
	</channel>
</rss>
