<?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>Tracy Phillips &#187; Linux</title>
	<atom:link href="http://tracyphillips.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://tracyphillips.com</link>
	<description></description>
	<lastBuildDate>Tue, 27 Oct 2009 14:12:43 +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>CentOS sudo error audit_log_user_command(): Connection refused</title>
		<link>http://tracyphillips.com/2009/01/24/centos-sudo-error-audit_log_user_command-connection-refused-2/</link>
		<comments>http://tracyphillips.com/2009/01/24/centos-sudo-error-audit_log_user_command-connection-refused-2/#comments</comments>
		<pubDate>Sat, 24 Jan 2009 18:02:52 +0000</pubDate>
		<dc:creator>tracphil</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[sudo]]></category>

		<guid isPermaLink="false">http://www.tracyphillips.com/?p=84</guid>
		<description><![CDATA[While in a CentOS OpenVZ virtual machine the other day, I had setup sudo to root and encountered the following message: [server][user][~]$ sudo su - Password: audit_log_user_command(): Connection refused No harm in that, but it was unpleasant to look at none the less. It finally got the better of me and I finally decided to [...]]]></description>
			<content:encoded><![CDATA[<p>While in a CentOS OpenVZ virtual machine the other day, I had setup sudo to root and encountered the following message:</p>
<pre>[server][user][~]$ sudo su -
Password:
audit_log_user_command(): Connection refused</pre>
<p>No harm in that, but it was unpleasant to look at none the less.</p>
<p>It finally got the better of me and I finally decided to go about fixing it.</p>
<p>This bug is in Redhat’s bugzilla located <a href="https://bugzilla.redhat.com/show_bug.cgi?id=401201" target="_blank">here</a>. The fix is to patch your current version of sudo or use a newer version of sudo than <code>sudo-1.6.9.p13</code>. I opted to install the latest version of sudo as of t his writing, sudo 1.7.</p>
<p>This was a fresh install, so I needed to install a few rpm’s with yum.</p>
<pre>[server][root][~]# yum install gcc pam-devel make</pre>
<p>Then I did the build</p>
<pre>[server][root][~]# wget http://www.gratisoft.us/sudo/dist/sudo-1.7.0.tar.gz
[server][root][~]# tar xzvf sudo-1.7.0.tar.gz
[server][root][~]# cd sudo-1.7.0
[server][root][~]# ./configure
[server][root][~]# make
[server][root][~]# make install</pre>
<p>That's all there was to it. Now you can sudo til’ your hearts content without that annoying little message.
<p>Now I can finally get ready for the <a href="http://www.nfl.com/superbowl/43">Super Bowl</a> party</p>
]]></content:encoded>
			<wfw:commentRss>http://tracyphillips.com/2009/01/24/centos-sudo-error-audit_log_user_command-connection-refused-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Recording shell session from login to exit</title>
		<link>http://tracyphillips.com/2009/01/22/recording-shell-session-from-login-to-exit-2/</link>
		<comments>http://tracyphillips.com/2009/01/22/recording-shell-session-from-login-to-exit-2/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 17:23:10 +0000</pubDate>
		<dc:creator>tracphil</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[shell script]]></category>

		<guid isPermaLink="false">http://www.tracyphillips.com/?p=77</guid>
		<description><![CDATA[Just the other day I was moving /home out of the / partition and in doing so I wanted to record all of the actions and output so that I could save them for later user… or to blog about ;) There are a couple of ways to go about saving all of that output. [...]]]></description>
			<content:encoded><![CDATA[<p>Just the other day I was moving <code>/home</code> out of the <code>/</code> partition and in doing so I wanted to record all of the actions and output so that I could save them for later user… or to blog about ;)</p>
<p>There are a couple of ways to go about saving all of that output.</p>
<p>The easiest way is to do this is to run the <code>script</code> command</p>
<pre>[server][root][~]# script</pre>
<p>By default, this creates the output as typescript</p>
<p>If you wanted to change the name of the output file, you would invoke it as</p>
<pre>[server][root][~]# script output.txt</pre>
<p>or any other file of your choosing.</p>
<p>That starts a recording session that will record what goes on during your terminal session.</p>
<p>If you want to record users shell session from login to exit</p>
<p>In the user’s <code>.bash_profile</code>, put something like</p>
<pre>exec /path/to/ttyrec session-log-$(date +%Y%m%d-%H%M)</pre>
<p>That will create a log file in the form of <code>session-log-YYYYMMDD-HHMM</code></p>
<p>Pretty nifty stuff.</p>
]]></content:encoded>
			<wfw:commentRss>http://tracyphillips.com/2009/01/22/recording-shell-session-from-login-to-exit-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exclude list of devices from LVM2</title>
		<link>http://tracyphillips.com/2009/01/22/exclude-list-of-devices-from-lvm2-2/</link>
		<comments>http://tracyphillips.com/2009/01/22/exclude-list-of-devices-from-lvm2-2/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 17:18:03 +0000</pubDate>
		<dc:creator>tracphil</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[lvm]]></category>
		<category><![CDATA[redhat]]></category>

		<guid isPermaLink="false">http://www.tracyphillips.com/?p=73</guid>
		<description><![CDATA[On Red Hat Enterprise Linux 4 and Red Hat Enterprise Linux 5, LVM2 can be configured via the /etc/lvm/lvm.conf file to exclude devices that the volume manager is not allowed to access. To exclude a list of devices, use the filter keyword to specify a list of accessible devices. An example of the filter keyword [...]]]></description>
			<content:encoded><![CDATA[<p>On Red Hat Enterprise Linux 4 and Red Hat Enterprise Linux 5, LVM2 can be configured via the /etc/lvm/lvm.conf file to exclude devices that the volume manager is not allowed to access. To exclude a list of devices, use the <strong>filter</strong> keyword to specify a list of accessible devices.</p>
<p>An example of the filter keyword is shown below:</p>
<pre>[server][root][~]# grep filter /etc/lvm/lvm.conf
filter =[ "a|loop|", "r|/dev/hdc|", "a|/dev/ide|", "r|.*|" ]</pre>
<p>Pattern matching is based on the following logic:</p>
<ul>
<li>If any name matches any ‘a’ pattern, the device is accepted</li>
<li>Otherwise if any name matches any ‘r’ pattern it is rejected</li>
<li>Otherwise it is accepted.</li>
</ul>
<p><strong>NOTE:</strong> Be sure to only specify one filter line in <code>/etc/lvm/lvm.conf</code> since only one filter pattern is expected.</p>
<p>After changes are made to the lvm configuration file, it will be necessary to run the command <code>vgscan</code> in order for the changes to become active. Shown below is an example of running vgscan in extended debug output mode to activate the changes in the configuration file.</p>
<pre>[server][root][~]# vgscan -vvvv</pre>
]]></content:encoded>
			<wfw:commentRss>http://tracyphillips.com/2009/01/22/exclude-list-of-devices-from-lvm2-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>List all cron jobs for all users</title>
		<link>http://tracyphillips.com/2008/11/13/list-all-cron-jobs-for-all-users-2/</link>
		<comments>http://tracyphillips.com/2008/11/13/list-all-cron-jobs-for-all-users-2/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 19:24:45 +0000</pubDate>
		<dc:creator>tracphil</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[cronjobs]]></category>
		<category><![CDATA[passwd]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.tracyphillips.com/?p=42</guid>
		<description><![CDATA[You need to run this as root: [server][root][~]# for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l; done that will loop over each user in /etc/passwd listing out their crontab. The crontabs are owned by the respective users so you will not be able to see another user's crontab without doing this [...]]]></description>
			<content:encoded><![CDATA[<p>You need to run this as root:</p>
<pre>[server][root][~]# for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l; done</pre>
<p>that will loop over each user in <code>/etc/passwd</code> listing out their crontab. The crontabs are owned by the respective users so you will not be able to see another user's crontab without doing this as root.</p>
]]></content:encoded>
			<wfw:commentRss>http://tracyphillips.com/2008/11/13/list-all-cron-jobs-for-all-users-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sendmail X-Authentication-Warning</title>
		<link>http://tracyphillips.com/2007/05/21/sendmail-x-authentication-warning-2/</link>
		<comments>http://tracyphillips.com/2007/05/21/sendmail-x-authentication-warning-2/#comments</comments>
		<pubDate>Mon, 21 May 2007 19:07:50 +0000</pubDate>
		<dc:creator>tracphil</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[sendmail]]></category>
		<category><![CDATA[warning]]></category>

		<guid isPermaLink="false">http://www.tracyphillips.com/?p=13</guid>
		<description><![CDATA[Have you ever looked at your email headers to see that sendmail was attaching an X-Authentication-Warning warning because Apache is the sender of an email as a different user other than the system user "apache"? This is what the email header would look like: X-Authentication-Warning: mail.domain.com: apache set sender to sales@domain.com using -f To keep [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever looked at your email headers to see that sendmail was attaching an X-Authentication-Warning warning because Apache is the sender of an email as a different user other than the system user "apache"?</p>
<p>This is what the email header would look like:
<p><code>X-Authentication-Warning: mail.domain.com: apache set sender to sales@domain.com using -f</code></p>
<p>To keep sendmail from adding the warning, you need to setup your apache user as a trusted sender. In my case my apache user is "apache". Sometimes the user might be called httpd.</p>
<p>You will need to add your apache user to <code>/etc/mail/trusted-users</code></p>
<pre>[server][root][~]# vi /etc/mail/trusted-users</pre>
<p>Your <code>sendmail.cf</code> should be ready for that:</p>
<pre>[server][root][~]# grep trusted /etc/mail/sendmail.cf
Ft/etc/mail/trusted-users</pre>
<p>Otherwise force the trusted user with a line like:</p>
<p><code>Tusername</code></p>
<p>If you build your <code>sendmail.cf</code> from <code>sendmail.mc</code>, use:</p>
<p><code>FEATURE(use_ct_file)dnl</code></p>
]]></content:encoded>
			<wfw:commentRss>http://tracyphillips.com/2007/05/21/sendmail-x-authentication-warning-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Openfiler Storage Solution</title>
		<link>http://tracyphillips.com/2005/12/13/openfiler-storage-solution-2/</link>
		<comments>http://tracyphillips.com/2005/12/13/openfiler-storage-solution-2/#comments</comments>
		<pubDate>Wed, 14 Dec 2005 05:12:27 +0000</pubDate>
		<dc:creator>tracphil</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[storage]]></category>

		<guid isPermaLink="false">http://www.tracyphillips.com/?p=37</guid>
		<description><![CDATA[If anyone is looking to implement a NAS type of storage solution, you may want to take a look at Openfiler. Openfiler is kind of a cross between a NAS and a SAN.]]></description>
			<content:encoded><![CDATA[<p>If anyone is looking to implement a NAS type of storage solution, you may want to take a look at <a href="http://www.openfiler.com/">Openfiler</a>. Openfiler is kind of a cross between a NAS and a SAN.</p>
]]></content:encoded>
			<wfw:commentRss>http://tracyphillips.com/2005/12/13/openfiler-storage-solution-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to mount a Windows share with Linux</title>
		<link>http://tracyphillips.com/2005/11/15/how-to-mount-a-windows-share-with-linux-2/</link>
		<comments>http://tracyphillips.com/2005/11/15/how-to-mount-a-windows-share-with-linux-2/#comments</comments>
		<pubDate>Wed, 16 Nov 2005 05:23:55 +0000</pubDate>
		<dc:creator>tracphil</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[smb]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.tracyphillips.com/?p=34</guid>
		<description><![CDATA[*NOTE* Make sure that samba is installed on your box before you begin. Maybe something like yum install samba or aptitude install samba will do it for you. First make sure that your Linux box can see your Windows box: smbclient -L 192.168.1.12 -U winuser Where 192.168.1.12 is your windows box and winuser is the [...]]]></description>
			<content:encoded><![CDATA[<p>*NOTE* Make sure that samba is installed on your box before you begin. Maybe something like yum install samba or aptitude install samba will do it for you.</p>
<p>First make sure that your Linux box can see your Windows box:</p>
<p><code>smbclient -L 192.168.1.12 -U winuser</code></p>
<p>Where <code>192.168.1.12</code> is your windows box and <code>winuser</code> is the user on your windows box.</p>
<p>Next create the directory that you want to use to mount the windows share:</p>
<p><code>mkdir /mnt/windows</code></p>
<p>You could just as easily have mounted it as /usr/local/mywindowsbox. I just like to keep things nice and tidy under <code>/mnt/</code></p>
<p>Next you will want to actually mount the windows share:</p>
<p><code>mount -t smbfs -0 username=winuser,password=mypassword //192.169.1.12/:share: /mnt/windows</code></p>
<p>The previous should all be on one line and :share: is the name of the share on your windows box.</p>
<p>Now your all set... what?... you want it to work automatically after you reboot?</p>
<p>Ok... here goes:</p>
<p>Open up <code>/etc/fstab</code> and put this in:</p>
<p><code>//192.168.1.12/:share: /mnt/windows smbfs \<br />
user,rw,iocharset=utf8,uid=500,gid=500,fmask=775,dmask=775, \<br />
password=mypassword,username=winuser 0 0</code></p>
<p>The previous should all be on one line so omit the \ at the end of line 1 and line 2</p>
]]></content:encoded>
			<wfw:commentRss>http://tracyphillips.com/2005/11/15/how-to-mount-a-windows-share-with-linux-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Red Hat To Include Xen, Stateless Linux In Next Release</title>
		<link>http://tracyphillips.com/2005/10/31/red-hat-to-include-xen-stateless-linux-in-next-release-2/</link>
		<comments>http://tracyphillips.com/2005/10/31/red-hat-to-include-xen-stateless-linux-in-next-release-2/#comments</comments>
		<pubDate>Tue, 01 Nov 2005 05:32:30 +0000</pubDate>
		<dc:creator>tracphil</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://www.tracyphillips.com/?p=32</guid>
		<description><![CDATA[I was reading the other day about Redhat pushing for XEN support to be included in the kernel. I now see why they were pushing for it so hard. They want to include it in RHEL 5 which is due out late next year. I surely hope they will include some great command line tools [...]]]></description>
			<content:encoded><![CDATA[<p>I was reading the other day about Redhat pushing for XEN support to be included in the kernel. I now see why they were pushing for it so hard. They want to include it in RHEL 5 which is due out late next year. I surely hope they will include some great command line tools to manage XEN with.<br />
<a href="http://www.informationweek.com/story/showArticle.jhtml?articleID=173400498&#038;tid=5979">read more</a></p>
]]></content:encoded>
			<wfw:commentRss>http://tracyphillips.com/2005/10/31/red-hat-to-include-xen-stateless-linux-in-next-release-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
