<?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>ITSA Blog &#187; Uncategorized</title>
	<atom:link href="http://itsecureadmin.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://itsecureadmin.com</link>
	<description>Life as an Open Source Solutions Architect.</description>
	<lastBuildDate>Fri, 03 Feb 2012 17:38:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Samba 3.4 Changes idmap backend!</title>
		<link>http://itsecureadmin.com/2009/11/samba-3-4-changes-idmap-backend/</link>
		<comments>http://itsecureadmin.com/2009/11/samba-3-4-changes-idmap-backend/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 01:14:29 +0000</pubDate>
		<dc:creator>Josh Miller, Red Hat Certified Engineer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://itsecureadmin.com/blog/?p=43</guid>
		<description><![CDATA[I recently upgraded some hosts to Fedora 11 which has Samba 3.4 included.  I configure most of the hosts I control to be integrated with Active Directory for authentication and this upgrade broke that authentication.
The problem was that the winbind daemon was not able to query the LDAP server which was used as the [...]]]></description>
			<content:encoded><![CDATA[<p>I recently upgraded some hosts to Fedora 11 which has Samba 3.4 included.  I configure most of the hosts I control to be integrated with Active Directory for authentication and this upgrade broke that authentication.</p>
<p>The problem was that the winbind daemon was not able to query the LDAP server which was used as the idmap directory due to the way I had configured the idmap backend in smb.conf.  This caused winbind and samba to restart successfully and I could enumerate groups and users perfectly well in bulk.  I was not able, however, to enumerate a single user using &#8216;wbinfo -i &#8216; or groups and I was not able to login.</p>
<p>This problem was caused by this config value:</p>
<pre>
idmap backend = "ldap:ldap://ldap1,ldap://ldap2"
</pre>
<p>After a bit of troubleshooting, I discovered that winbind was not able to query the LDAP server successfully.  I fixed this issue by changing the above config value to:</p>
<pre>
idmap backend = ldap:ldap://ldap1 ldap://ldap2
</pre>
<p>I then restarted winbind and tested failover by enumerating a few users and then stopping the primary ldap server (ldap1) and enumerating a few more users.</p>
]]></content:encoded>
			<wfw:commentRss>http://itsecureadmin.com/2009/11/samba-3-4-changes-idmap-backend/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>error while loading shared libraries:  :  cannot open shared object file: No such file or directory</title>
		<link>http://itsecureadmin.com/2009/06/error-while-loading-shared-libraries-cannot-open-shared-object-file-no-such-file-or-directory/</link>
		<comments>http://itsecureadmin.com/2009/06/error-while-loading-shared-libraries-cannot-open-shared-object-file-no-such-file-or-directory/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 23:35:21 +0000</pubDate>
		<dc:creator>Josh Miller, Red Hat Certified Engineer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://itsecureadmin.com/blog/?p=41</guid>
		<description><![CDATA[A fairly typical scenario when installing software that does not come fro the distribution package manager is to install an application and find that it cannot find a library necessary to run, although the library is definitely installed.  I recently ran into this issue when compiling spine on an old Debian Sarge system.
$ ./spine
./spine: error [...]]]></description>
			<content:encoded><![CDATA[<p>A fairly typical scenario when installing software that does not come fro the distribution package manager is to install an application and find that it cannot find a library necessary to run, although the library is definitely installed.  I recently ran into this issue when compiling spine on an old Debian Sarge system.</p>
<p>$ ./spine<br />
./spine: error while loading shared libraries: libmysqlclient_r.so.15: cannot open shared object file: No such file or directory</p>
<p>I verified that this file existed with locate.</p>
<p>$ locate libmysqlclient_r.so.15<br />
/usr/local/mysql-5.0.45-linux-i686/lib/libmysqlclient_r.so.15.0.0<br />
/usr/local/mysql-5.0.45-linux-i686/lib/libmysqlclient_r.so.15</p>
<p>The problem was that I did not have the mysql library directory included in /etc/ld.so.conf or /etc/ld.so.conf.d.  To fix the problem, I added the mysql library path to /etc/ld.so.conf and re-ran ldconfig using sudo.</p>
<p>#/etc/ld.so.conf/usr/local/lib/sasl2<br />
/usr/local/lib<br />
/lib<br />
/usr/lib<br />
/usr/lib/atlas<br />
/usr/local/mysql-5.0.45-linux-i686/lib</p>
<p>include /etc/ld.so.conf.d/*.conf</p>
<p>Then run ldconfig:</p>
<p>$ sudo ldconfig</p>
<p>I was then able to run spine without any issues.</p>
]]></content:encoded>
			<wfw:commentRss>http://itsecureadmin.com/2009/06/error-while-loading-shared-libraries-cannot-open-shared-object-file-no-such-file-or-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>History with time stamps!</title>
		<link>http://itsecureadmin.com/2009/05/history-with-time-stamps/</link>
		<comments>http://itsecureadmin.com/2009/05/history-with-time-stamps/#comments</comments>
		<pubDate>Fri, 22 May 2009 00:00:22 +0000</pubDate>
		<dc:creator>Josh Miller, Red Hat Certified Engineer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://itsecureadmin.com/blog/?p=39</guid>
		<description><![CDATA[When reviewing the history file in bash, it&#8217;s terrible not knowing when a command was executed.  Using the HISTTIMEFORMAT variable in a .bashrc file, the timestamp can be added to all commands.
# ~/.bashrc
HISTTIMEFORMAT=&#8221;%m/%d/%y %I:%M:%S %p &#8221;
Sample output:
525  05/21/09 07:56:46 PM tail -f /var/log/messages  /var/log/secure
As you can see, the command is preceeded by the line number [...]]]></description>
			<content:encoded><![CDATA[<p>When reviewing the history file in bash, it&#8217;s terrible not knowing when a command was executed.  Using the HISTTIMEFORMAT variable in a .bashrc file, the timestamp can be added to all commands.</p>
<p># ~/.bashrc<br />
HISTTIMEFORMAT=&#8221;%m/%d/%y %I:%M:%S %p &#8221;<br />
Sample output:</p>
<p>525  05/21/09 07:56:46 PM tail -f /var/log/messages  /var/log/secure</p>
<p>As you can see, the command is preceeded by the line number and a timestamp.</p>
]]></content:encoded>
			<wfw:commentRss>http://itsecureadmin.com/2009/05/history-with-time-stamps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sudo PATH and bash</title>
		<link>http://itsecureadmin.com/2009/05/sudo-path-and-bash/</link>
		<comments>http://itsecureadmin.com/2009/05/sudo-path-and-bash/#comments</comments>
		<pubDate>Thu, 21 May 2009 23:55:13 +0000</pubDate>
		<dc:creator>Josh Miller, Red Hat Certified Engineer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://itsecureadmin.com/blog/?p=37</guid>
		<description><![CDATA[I just spent a bit of time troubleshooting a path issue with sudo on a CentOS server.  This is a note to self to preserve this bit of knowledge.
When dealing with sudo, the only time the PATH environment variable will be preserved is if it&#8217;s in .bashrc and NOT in .bash_profile.
]]></description>
			<content:encoded><![CDATA[<p>I just spent a bit of time troubleshooting a path issue with sudo on a CentOS server.  This is a note to self to preserve this bit of knowledge.</p>
<p>When dealing with sudo, the only time the PATH environment variable will be preserved is if it&#8217;s in .bashrc and NOT in .bash_profile.</p>
]]></content:encoded>
			<wfw:commentRss>http://itsecureadmin.com/2009/05/sudo-path-and-bash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Software RAID and GRUB</title>
		<link>http://itsecureadmin.com/2009/05/software-raid-and-grub/</link>
		<comments>http://itsecureadmin.com/2009/05/software-raid-and-grub/#comments</comments>
		<pubDate>Wed, 20 May 2009 16:27:07 +0000</pubDate>
		<dc:creator>Josh Miller, Red Hat Certified Engineer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://itsecureadmin.com/blog/?p=35</guid>
		<description><![CDATA[When building out a system with a boot partition using software RAID, it is critical to install GRUB on both drives to that if one fails, the other can be used to boot the system.
1. Make sure that the RAID volume is synchronized (assuming /dev/md0 for /boot):
mdadm -D /dev/md0
2. Install grub on the first drive:
# [...]]]></description>
			<content:encoded><![CDATA[<p>When building out a system with a boot partition using software RAID, it is critical to install GRUB on both drives to that if one fails, the other can be used to boot the system.<br />
1. Make sure that the RAID volume is synchronized (assuming /dev/md0 for /boot):</p>
<p>mdadm -D /dev/md0</p>
<p>2. Install grub on the first drive:</p>
<p># grub<br />
Probing devices to guess BIOS drives. This may take a long time.</p>
<p>grub&gt; root (hd0,0)<br />
Filesystem type is ext2fs, partition type 0xfd</p>
<p>grub&gt; setup (hd0)<br />
Checking if &#8220;/boot/grub/stage1&#8243; exists&#8230; no<br />
Checking if &#8220;/grub/stage1&#8243; exists&#8230; yes<br />
Checking if &#8220;/grub/stage2&#8243; exists&#8230; yes<br />
Checking if &#8220;/grub/e2fs_stage1_5&#8243; exists&#8230; yes<br />
Running &#8220;embed /grub/e2fs_stage1_5 (hd0)&#8221;&#8230;  15 sectors are embedded.<br />
succeeded<br />
Running &#8220;install /grub/stage1 (hd0) (hd0)1+15 p (hd0,0)/grub/stage2 /grub/menu.lst&#8221;&#8230; succeeded<br />
Done.</p>
<p>3. Install grub on the second drive:</p>
<p>grub&gt; root (hd1,0)<br />
Filesystem type is ext2fs, partition type 0xfd</p>
<p>grub&gt; setup (hd1)<br />
Checking if &#8220;/boot/grub/stage1&#8243; exists&#8230; no<br />
Checking if &#8220;/grub/stage1&#8243; exists&#8230; yes<br />
Checking if &#8220;/grub/stage2&#8243; exists&#8230; yes<br />
Checking if &#8220;/grub/e2fs_stage1_5&#8243; exists&#8230; yes<br />
Running &#8220;embed /grub/e2fs_stage1_5 (hd1)&#8221;&#8230;  15 sectors are embedded.<br />
succeeded<br />
Running &#8220;install /grub/stage1 (hd1) (hd1)1+15 p (hd1,0)/grub/stage2 /grub/menu.lst&#8221;&#8230; succeeded<br />
Done.</p>
<p>grub&gt; quit<br />
That should allow booting from either drive without modification of grub.conf or /etc/fstab.</p>
]]></content:encoded>
			<wfw:commentRss>http://itsecureadmin.com/2009/05/software-raid-and-grub/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fast Hard Disks</title>
		<link>http://itsecureadmin.com/2009/04/fast-hard-disks/</link>
		<comments>http://itsecureadmin.com/2009/04/fast-hard-disks/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 15:01:55 +0000</pubDate>
		<dc:creator>Josh Miller, Red Hat Certified Engineer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://itsecureadmin.com/blog/?p=26</guid>
		<description><![CDATA[One of the biggest bottlenecks in any system is the hard disk drive.  I found HyperOS Systems while reviewing the MySQL users mailing list yesterday.  This company sells a device that you can plug DDR2 RAM into and use as a Solid State Disk.  They also provide a battery and CF backup system in case [...]]]></description>
			<content:encoded><![CDATA[<p>One of the biggest bottlenecks in any system is the hard disk drive.  I found HyperOS Systems while reviewing the MySQL users mailing list yesterday.  This company sells a device that you can plug DDR2 RAM into and use as a Solid State Disk.  They also provide a battery and CF backup system in case you lose power.<br />
<a href="http://www.hyperossystems.co.uk/" target="_blank">Check it out.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://itsecureadmin.com/2009/04/fast-hard-disks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is Linux?</title>
		<link>http://itsecureadmin.com/2009/04/what-is-linux/</link>
		<comments>http://itsecureadmin.com/2009/04/what-is-linux/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 14:55:47 +0000</pubDate>
		<dc:creator>Josh Miller, Red Hat Certified Engineer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://itsecureadmin.com/blog/?p=24</guid>
		<description><![CDATA[The Linux Foundation recently had a contest to see who could come up with a video to compete with the &#8220;I&#8217;m a Mac&#8221; and &#8220;I&#8217;m a PC&#8221; ads.  Here is the winner.
]]></description>
			<content:encoded><![CDATA[<p>The Linux Foundation recently had a contest to see who could come up with a video to compete with the &#8220;I&#8217;m a Mac&#8221; and &#8220;I&#8217;m a PC&#8221; ads.  <a href="http://video.linuxfoundation.org/video/1106" target="_blank">Here</a> is the winner.</p>
]]></content:encoded>
			<wfw:commentRss>http://itsecureadmin.com/2009/04/what-is-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting a LUNs Alignment Offset</title>
		<link>http://itsecureadmin.com/2008/09/setting-a-luns-alignment-offset/</link>
		<comments>http://itsecureadmin.com/2008/09/setting-a-luns-alignment-offset/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 21:24:39 +0000</pubDate>
		<dc:creator>Josh Miller, RHCE</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://itsecureadmin.com/blog/?p=21</guid>
		<description><![CDATA[I came across this handy page which details LUN alignment offset via fdisk:
Setting the offset.
Apparently this comes in handy when working with EMC Clarriions.
]]></description>
			<content:encoded><![CDATA[<p>I came across this handy page which details LUN alignment offset via fdisk:</p>
<p><a href="http://bp0.blogger.com/_XRjGvLrhUF0/R7HwH5uG9rI/AAAAAAAAAEM/cvnKfCDPGS4/s1600-h/Setting+the+Alignment+Offset.jpg" target="_self">Setting the offset.</a></p>
<p>Apparently this comes in handy when working with EMC Clarriions.</p>
]]></content:encoded>
			<wfw:commentRss>http://itsecureadmin.com/2008/09/setting-a-luns-alignment-offset/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

