<?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>ToraCat&#039;s Eye</title>
	<atom:link href="http://blog.toracat.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.toracat.org</link>
	<description>A view from a sleepy cat</description>
	<lastBuildDate>Tue, 07 May 2013 20:01:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Installing only security updates using yum in RHEL</title>
		<link>http://blog.toracat.org/2013/05/install-security-updates-in-rhel/</link>
		<comments>http://blog.toracat.org/2013/05/install-security-updates-in-rhel/#comments</comments>
		<pubDate>Tue, 07 May 2013 16:16:33 +0000</pubDate>
		<dc:creator>toracat</dc:creator>
				<category><![CDATA[RHEL]]></category>

		<guid isPermaLink="false">http://blog.toracat.org/?p=508</guid>
		<description><![CDATA[[CentOS and Scientific Linux users should see the Notes below] In Enterprise Linux, it is often desirable to minimize the number of updates to install. Many admins just want to apply security-related updates. This is easily done using yum security plugin. First, install the plugin: yum install yum-plugin-security To install only the security updates : <a href='http://blog.toracat.org/2013/05/install-security-updates-in-rhel/' class='excerpt-more'>[...]</a>]]></description>
				<content:encoded><![CDATA[<p>[CentOS and Scientific Linux users should see the Notes below]</p>
<p>In Enterprise Linux, it is often desirable to minimize the number of updates to install. Many admins just want to apply security-related updates. This is easily done using <strong>yum security plugin</strong>. First, install the plugin:</p>
<pre>yum install yum-plugin-security</pre>
<p>To install only the security updates :</p>
<pre>yum --security update</pre>
<p>You&#8217;ll see something similar to:</p>
<pre>===================================================================================
 Package           Arch        Version             Repository                 Size
===================================================================================
Updating:
 mysql             x86_64      5.1.69-1.el6_4      rhel-x86_64-server-6      907 k
 mysql-libs        x86_64      5.1.69-1.el6_4      rhel-x86_64-server-6      1.2 M
 mysql-server      x86_64      5.1.69-1.el6_4      rhel-x86_64-server-6      8.7 M

Transaction Summary
===================================================================================</pre>
<p>That&#8217;s it. But there are many other things you can do. For example, <strong>yum updateinfo</strong> has some handy options. Try the following:</p>
<pre>yum updateinfo summary
yum updateinfo list security
yum updateinfo list available
yum updateinfo list bugzillas</pre>
<p>The first command may show:</p>
<pre>Updates Information Summary: available
    3 Important Security notice(s)
    2 Bugfix notice(s)
updateinfo summary done</pre>
<p>The second command will display the advisory info such as:</p>
<pre>RHSA-2013:0772 Important/Sec. mysql-5.1.69-1.el6_4.x86_64</pre>
<p>Then you can apply the update based on the advisory:</p>
<pre>yum update --advisory RHSA-2013:0772</pre>
<p><strong>Notes for CentOS and Scientific Linux users</strong><br />
At the time of this writing, CentOS does not have the yum security feature implemented. This may change in a near future. Stay tuned.</p>
<p>Scientific Linux has been providing the package updates in two repositories, <em>sl-security</em> and <em>sl-fastbugs</em>.  The sl-security repo contains security-related packages plus their dependencies and is shipped enabled by default. The sl-fastbugs repository is for non-security updates which is shipped disabled. Thus, applying security only updates is the default behavior.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.toracat.org/2013/05/install-security-updates-in-rhel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Customizing welcome message in RHEL/CentOS/SL</title>
		<link>http://blog.toracat.org/2013/04/customizing-welcome-message/</link>
		<comments>http://blog.toracat.org/2013/04/customizing-welcome-message/#comments</comments>
		<pubDate>Sat, 13 Apr 2013 20:30:23 +0000</pubDate>
		<dc:creator>toracat</dc:creator>
				<category><![CDATA[centos]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[Scientific Linux]]></category>

		<guid isPermaLink="false">http://blog.toracat.org/?p=486</guid>
		<description><![CDATA[Customizing motd You can have the MOTD (message of the day) display messages that may be unique to the machine. One way to do this is to create a script that runs when a user logs on to the system. First, create a script, make it executable, and save it in /etc/profile.d. Here is an <a href='http://blog.toracat.org/2013/04/customizing-welcome-message/' class='excerpt-more'>[...]</a>]]></description>
				<content:encoded><![CDATA[<h4>Customizing motd</h4>
<p>You can have the MOTD (message of the day) display messages that may be unique to the machine. One way to do this is to create a script that runs when a user logs on to the system.</p>
<p>First, create a script, make it executable, and save it in <strong>/etc/profile.d</strong>. Here is an example script named mot.d:</p>
<pre>#!/bin/bash
#
echo -e "
##################################
#
# Welcome to `hostname`
# This system is running `cat /etc/redhat-release`
# kernel is `uname -r`
#
# You are logged in as `whoami`
#
##################################
"</pre>
<p>Next, edit <strong>/etc/ssh/sshd_config</strong> as follows:</p>
<pre>PrintMotd no</pre>
<p>This will disable motd. Now restart the sshd service.</p>
<p>That&#8217;s it! When you log in, you&#8217;d see something similar to:</p>
<pre>##################################
#
# Welcome to machine1
# This system is running Red Hat Enterprise Linux Server release 6.4 (Santiago)
# kernel is 2.6.32-358.2.1.el6.x86_64
#
# You are logged in as user2
#
##################################</pre>
<p>[ Please note that this does not work if your login shell is (t)csh. ]</p>
<h4>Customizing ssh banner message</h4>
<p>You can also create customized greetings for users connecting to your system through ssh. Note that this message is displayed <em>before</em> the actual login.</p>
<p>Create a text file that should appear as the greetings, for example, /etc/sshgreetings.txt.</p>
<pre>$ cat /etc/sshgreetings.txt
###############################
#                             #
#      Welcome to Machine1    #
#                             #
###############################</pre>
<p>Then edit <strong>/etc/ssh/sshd_config</strong> as follows:</p>
<pre>Banner /etc/sshgreetings.txt</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.toracat.org/2013/04/customizing-welcome-message/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Leap seconds &#8211; who cares?</title>
		<link>http://blog.toracat.org/2012/06/leap-seconds-who-cares/</link>
		<comments>http://blog.toracat.org/2012/06/leap-seconds-who-cares/#comments</comments>
		<pubDate>Fri, 15 Jun 2012 16:36:48 +0000</pubDate>
		<dc:creator>toracat</dc:creator>
				<category><![CDATA[centos]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[Scientific Linux]]></category>

		<guid isPermaLink="false">http://blog.toracat.org/?p=471</guid>
		<description><![CDATA[A leap second will be introduced at midnight on June 30, 2012. The last time this happened was on the New Years Eve in 2008. One might say, &#8220;OK, I will get to the next appointment 1 second ahead, good!&#8221;. So who cares? System administrators would take the matter seriously though. In fact, you may <a href='http://blog.toracat.org/2012/06/leap-seconds-who-cares/' class='excerpt-more'>[...]</a>]]></description>
				<content:encoded><![CDATA[<p>A leap second will be introduced at midnight on June 30, 2012. The last time this happened was on the New Years Eve in 2008.</p>
<p>One might say, &#8220;OK, I will get to the next appointment 1 second ahead, good!&#8221;. So who cares? System administrators would take the matter seriously though. In fact, you may remember a story of Linux machines crashing at the last occurrence of a leap second  [1]. It was due to bad code in the kernel prior to 2.6.29 and many OSs were affected including RHEL 4 and 5 [2].</p>
<p>The code has been fixed since. Make sure your kernel is newer than kernel-2.6.18-164.el5 (RHEL/CentOS/SL). RHEL/CentOS/SL 6 kernels are not affected.</p>
<p>A quick note to add is that the above issue applies only if you are running NTP. If the system is not running NTP, you need to correct the clock manually.</p>
<p>[1] <a href="http://ask.slashdot.org/article.pl?sid=09/01/01/1930202" title="slashdot article">http://ask.slashdot.org/article.pl?sid=09/01/01/1930202</a></p>
<p>[2] <a href="https://bugzilla.redhat.com/show_bug.cgi?id=479765" title="Red Hat bugzilla">https://bugzilla.redhat.com/show_bug.cgi?id=479765</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.toracat.org/2012/06/leap-seconds-who-cares/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Removing Suspend and Hibernate from the gnome menu on RHEL-6</title>
		<link>http://blog.toracat.org/2011/09/removing-suspend-and-hubernate-from-the-gnome-menu/</link>
		<comments>http://blog.toracat.org/2011/09/removing-suspend-and-hubernate-from-the-gnome-menu/#comments</comments>
		<pubDate>Sun, 18 Sep 2011 18:12:05 +0000</pubDate>
		<dc:creator>toracat</dc:creator>
				<category><![CDATA[centos]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[Scientific Linux]]></category>

		<guid isPermaLink="false">http://blog.toracat.org/?p=435</guid>
		<description><![CDATA[I wrote about how to get rid of the &#8220;Suspend&#8221; option from gnome&#8217;s system menu on RHEL/SL/CentOS-5 in my earlier blog. On RHEL-6, &#8220;Suspend&#8221; and &#8220;Hibernate&#8221; are now found under &#8220;Shutdown&#8221; in the &#8220;System&#8221; menu in gnome. To remove these options from the list of available actions, create a PolicyKit file named 10-disable-suspend-hibernate.pkla (for example) <a href='http://blog.toracat.org/2011/09/removing-suspend-and-hubernate-from-the-gnome-menu/' class='excerpt-more'>[...]</a>]]></description>
				<content:encoded><![CDATA[<p>I wrote about how to get rid of the &#8220;Suspend&#8221; option from gnome&#8217;s system menu on RHEL/SL/CentOS-5 in <a href="http://blog.toracat.org/2009/04/getting-rid-of-suspend-on-a-desktop-machine/" title="getting rid of Suspend">my earlier blog</a>.  On RHEL-6, &#8220;Suspend&#8221; and &#8220;Hibernate&#8221; are now found under &#8220;Shutdown&#8221; in the &#8220;System&#8221; menu in gnome.</p>
<p>To remove these options from the list of available actions, create a PolicyKit file named <strong>10-disable-suspend-hibernate.pkla</strong> (for example) with the following contents:</p>
<pre>[Disable suspend]
Identity=unix-group:*
Action=org.freedesktop.devicekit.power.suspend;org.freedesktop.devicekit.power.hibernate
ResultAny=no
ResultInactive=no
ResultActive=no
</pre>
<p>and save it in the <strong>/var/lib/polkit-1/localauthority/50-local.d</strong>  directory.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.toracat.org/2011/09/removing-suspend-and-hubernate-from-the-gnome-menu/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>VMware Workstation and RHEL 6.1 and vmmon and trouble</title>
		<link>http://blog.toracat.org/2011/05/vmware-workstation-and-rhel6-1/</link>
		<comments>http://blog.toracat.org/2011/05/vmware-workstation-and-rhel6-1/#comments</comments>
		<pubDate>Sat, 28 May 2011 23:48:01 +0000</pubDate>
		<dc:creator>toracat</dc:creator>
				<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[Scientific Linux]]></category>

		<guid isPermaLink="false">http://blog.toracat.org/?p=390</guid>
		<description><![CDATA[If you have VMware Workstation and are thinking of upgrading your OS to RHEL (or its clone) 6.1, be prepare to go through some extra steps. VMware WS and EL6.1 won&#8217;t work together. See, for example, this VMware community forum post: the vmmon.ko module won&#8217;t load. Technical details of this issue can be found in <a href='http://blog.toracat.org/2011/05/vmware-workstation-and-rhel6-1/' class='excerpt-more'>[...]</a>]]></description>
				<content:encoded><![CDATA[<p>If you have VMware Workstation and are thinking of upgrading your OS to RHEL (or its clone) 6.1, be prepare to go through some extra steps. VMware WS and EL6.1 won&#8217;t work together. <img src='http://blog.toracat.org/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' />  See, for example, this <a href="http://communities.vmware.com/message/1758730">VMware community forum post</a>: the vmmon.ko module won&#8217;t load. Technical details of this issue can be found in this <a href="https://bugzilla.redhat.com/show_bug.cgi?id=706216">Red Hat bugzilla</a> entry. Apparently, a patch introduced in the EL 6.1 kernel (2.6.32-131.0.15.el6) changed the smp_ops symbol and that prevents the <strong>vmmon</strong> kernel module from loading.</p>
<p>In VMWare Workstation 7.1.4 build-385536, I see this info with the modinfo command:</p>
<pre>vermagic:       2.6.32-71.el6.x86_64 SMP mod_unload modversions</pre>
<p>A workaround is to compile the <strong>vmmon</strong> module on EL 6.1.<br />
Make sure you have kernel-devel installed that matches the running kernel.<br />
Start as a user (not root):</p>
<pre>
(1) mkdir ~/vmsrc ; cd ~/vmsrc
(2) tar xvf /usr/lib/vmware/modules/source/vmmon.tar
(3) cd vmmon-only
(4) make [<em>Note: this builds vmmon.ko</em>]
(5) strip --strip-debug vmmon.ko [<em>This is optional. Note the two dashes</em>]
(6) su -
(7) cd /lib/modules/`uname -r`/misc
(8) mv vmmon.o vmmon.o.dist [<em>Note: save the original just in case</em>]
(9) cp /(path to user's home)/vmsrc/vmmon-only/vmmon.ko vmmon.o
</pre>
<p>That should do it!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.toracat.org/2011/05/vmware-workstation-and-rhel6-1/feed/</wfw:commentRss>
		<slash:comments>33</slash:comments>
		</item>
		<item>
		<title>A Kernel Too Far</title>
		<link>http://blog.toracat.org/2011/03/a-kernel-too-far/</link>
		<comments>http://blog.toracat.org/2011/03/a-kernel-too-far/#comments</comments>
		<pubDate>Sat, 12 Mar 2011 22:32:05 +0000</pubDate>
		<dc:creator>toracat</dc:creator>
				<category><![CDATA[centos]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[Scientific Linux]]></category>

		<guid isPermaLink="false">http://blog.toracat.org/?p=363</guid>
		<description><![CDATA[The ELRepo Project offers the stable mainline kernel built for RHEL/SL/CentOS 5. It is named kernel-ml. I must emphasize that these kernels are not meant for production use but rather for hardware testing. There are two versions currently being maintained: the long-term kernel 2.6.35 and the latest stable line (2.6.37 as of this writing). Is <a href='http://blog.toracat.org/2011/03/a-kernel-too-far/' class='excerpt-more'>[...]</a>]]></description>
				<content:encoded><![CDATA[<p>The <a href="http://elrepo.org/">ELRepo Project</a> offers the stable mainline kernel built for RHEL/SL/CentOS 5. It is named <a href="http://elrepo.org/tiki/tiki-index.php?page=kernel-ml"><strong>kernel-ml</strong></a>. I must emphasize that these kernels are not meant for production use but rather for hardware testing.</p>
<p>There are two versions currently being maintained: the long-term kernel 2.6.35 and the latest stable line (2.6.37 as of this writing). Is the newer version better? Not really so. The first alarming sign came from <a href="http://dag.wieers.com/blog/"><strong>Dag</strong></a> and the maintainer of kernel-ml, <a href="http://www.centos.org/userinfo.php?uid=25484/"><strong>Alan</strong></a>. The Gnome power management did not operate correctly for their laptops with kernel-ml-2.6.36.</p>
<p><strong>Alan</strong> recently noted that, the further away the LKA (Linux kernel archive) kernel becomes from the 2.6.18 kernel (which is the basis of EL5), the less likely a stable LKA kernel will be usable. In fact, on certain hardware, kernel-ml 2.6.35 runs fine whereas 2.6.37 does not [1,2].</p>
<p>Quoting <a href="https://www.centos.org/userinfo.php?uid=6212"><strong>Phil</strong></a>, &#8220;I see more &#8220;value&#8221; in the kernel-ml-2.6.35 offering. I agree that sooner or later you are likely to hit a point of diminishing returns, and perhaps you&#8217;ve already reached that point with the current kernel-ml-2.6.37.&#8221;</p>
<p>So, is this <em>kernel too far</em> ?</p>
<p>[1] <a href="http://lists.elrepo.org/pipermail/elrepo/2011-February/000473.html">http://lists.elrepo.org/pipermail/elrepo/2011-February/000473.html</a><br />
[2] <a href="http://lists.elrepo.org/pipermail/elrepo/2011-March/000542.html">http://lists.elrepo.org/pipermail/elrepo/2011-March/000542.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.toracat.org/2011/03/a-kernel-too-far/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>gnome login shows all valid user accounts &#8212; disable it</title>
		<link>http://blog.toracat.org/2011/01/gnome-login-shows-all-valid-user-accounts-disable-it/</link>
		<comments>http://blog.toracat.org/2011/01/gnome-login-shows-all-valid-user-accounts-disable-it/#comments</comments>
		<pubDate>Sun, 02 Jan 2011 08:45:38 +0000</pubDate>
		<dc:creator>toracat</dc:creator>
				<category><![CDATA[centos]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[Scientific Linux]]></category>

		<guid isPermaLink="false">http://blog.toracat.org/?p=340</guid>
		<description><![CDATA[In RHEL-6, the gnome login screen displays all user accounts. Apparently this behavior of the gdm greeter was inherited from Fedora. This may not be a problem with personal desktops/laptops but, in an enterprise class Linux like RHEL, it could constitute a security vulnerability. I saw complaints from users as early as in Fedora 9. <a href='http://blog.toracat.org/2011/01/gnome-login-shows-all-valid-user-accounts-disable-it/' class='excerpt-more'>[...]</a>]]></description>
				<content:encoded><![CDATA[<p>In RHEL-6, the gnome login screen displays all user accounts. Apparently this behavior of the gdm greeter was inherited from Fedora.  This may not be a problem with personal desktops/laptops but, in an enterprise class Linux like RHEL, it could constitute a security vulnerability. I saw complaints from users as early as in Fedora 9.  <strong>Alan</strong> has filed a <a href="https://bugzilla.redhat.com/show_bug.cgi?id=666220">bugzila against RHEL-6</a>.</p>
<p>It is <em>possible</em> to disable it. Problem is &#8230; it is <em>not easy</em> to do it. The following command (one-liner) will disable the gdm greeter&#8217;s listing of users:</p>
<pre>
sudo -u gdm gconftool-2 --type bool --set /apps/gdm/simple-greeter \\
/disable_user_list true
</pre>
<p>By the way, you can see the set value by:</p>
<pre>sudo -u gdm gconftool-2 --get /apps/gdm/simple-greeter/disable_user_list
</pre>
<p>Note that the command was run as <strong>gdm</strong>. Running the same gconftool-2 command as root would not work.  Alternatively, you can modify the systemwide configuration. It will be just easy if you manually edit the file <code>/etc/gconf/gconf.xml.defaults/%gconf-tree.xml</code> and change the boolean for <strong>disable_user_list</strong> from false to <strong>true</strong>. </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.toracat.org/2011/01/gnome-login-shows-all-valid-user-accounts-disable-it/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Hardware virtualization supported but no vmx or svm flag?</title>
		<link>http://blog.toracat.org/2010/12/hardware-virtualization-supported-but-no-vmx-or-svm-flag/</link>
		<comments>http://blog.toracat.org/2010/12/hardware-virtualization-supported-but-no-vmx-or-svm-flag/#comments</comments>
		<pubDate>Thu, 23 Dec 2010 18:12:31 +0000</pubDate>
		<dc:creator>toracat</dc:creator>
				<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[RHEL]]></category>

		<guid isPermaLink="false">http://blog.toracat.org/?p=325</guid>
		<description><![CDATA[One common method to verify that the system has the hardware virtualization extentions (Intel VT or AMD-V) required for full virtualization is to look into /proc/cpuinfo like: egrep '(vmx&#124;svm)' --color=always /proc/cpuinfo There was an intriguing post by pjwelsh in the CentOS forums . Apparently he has a VT-capable CPU but it did not show up <a href='http://blog.toracat.org/2010/12/hardware-virtualization-supported-but-no-vmx-or-svm-flag/' class='excerpt-more'>[...]</a>]]></description>
				<content:encoded><![CDATA[<p>One common method to verify that the system has the hardware virtualization extentions (Intel VT or AMD-V) required for full virtualization is to look into /proc/cpuinfo like:</p>
<p><code>egrep '(vmx|svm)' --color=always /proc/cpuinfo<br />
</code><br />
There was an <a href="https://www.centos.org/modules/newbb/viewtopic.php?viewmode=flat&#038;topic_id=28270&#038;forum=39">intriguing post</a> by <strong>pjwelsh</strong> in the CentOS forums . Apparently he has a VT-capable CPU but it did not show up in /proc/cpuinfo. When he tried Fedora, it was there.</p>
<p>When someone as knowledgeable as <strong>pjwelsh</strong> reports an issue, it really needs attention but the thread did not yield any answer.</p>
<p>Then more recently, a <a href="https://www.centos.org/modules/newbb/viewtopic.php?viewmode=flat&#038;topic_id=29422&#038;forum=39">post</a> that seemingly reports the same problem appeared in the Forums. It was time to do more investigation.</p>
<p>Turns out it was a known issue and there was an entry in the Red Hat <a href="https://bugzilla.redhat.com/show_bug.cgi?id=624365">bugzilla</a> explaining how that happened. </p>
<blockquote><p>As work for 5.5 we masked out a bunch more cpuid flags, one of which was vmxe. This has caused some confusion since many people are used to looking in /proc/cpuinfo for vmx in order to detect if the hardware is capable of virtualization. To avoid the confusion, we&#8217;ll bring it back. It does, however, open a door for a guest admin to shoot themselves in the foot (i.e. attempt to load the KVM module on a Xen guest, which will crash the guest). The svm flag for AMD machines is also brought back.</p></blockquote>
<p>Hmmm, seems <em>over-cleaning</em> to me. The fix was applied as of kernel-2.6.18-194.17.1.el5.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.toracat.org/2010/12/hardware-virtualization-supported-but-no-vmx-or-svm-flag/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SELinux and FreeNX</title>
		<link>http://blog.toracat.org/2010/12/selinux-and-freenx/</link>
		<comments>http://blog.toracat.org/2010/12/selinux-and-freenx/#comments</comments>
		<pubDate>Sat, 11 Dec 2010 21:15:07 +0000</pubDate>
		<dc:creator>toracat</dc:creator>
				<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[Scientific Linux]]></category>

		<guid isPermaLink="false">http://blog.toracat.org/?p=301</guid>
		<description><![CDATA[[Note added in August 2011: Be sure to read the comment by Dan Walsh. There is a simpler solution] When you attempt to connect to a remote machine using freenx, you might encounter this message: The NX service is not available or the NX access was disabled on host XXX. This is likely due to <a href='http://blog.toracat.org/2010/12/selinux-and-freenx/' class='excerpt-more'>[...]</a>]]></description>
				<content:encoded><![CDATA[<p><span style="color: #993300;">[Note added in August 2011: Be sure to read the comment by Dan Walsh. There is a simpler solution]</span></p>
<p>When you attempt to connect to a remote machine using freenx, you might encounter this message:<br />
<code><br />
The NX service is not available or the NX access was disabled on host XXX.<br />
</code><br />
This is likely due to SELinux blocking the connection. If you are using QtNX, it just hangs without any message.  Here is how to solve the issue.</p>
<p>(1) Disable auditd.</p>
<p><code>service auditd stop</code></p>
<p>(2) Rename /var/log/audit/audit.log or move it somewhere else.</p>
<p>(3) Enable auditd</p>
<p><code>service auditd start</code></p>
<p>(4) Try connection from the client. It will fail. This writes the audit.log file.</p>
<p>(5) Generate SELinux policy rules from the log file and install it.</p>
<p><code>cat /var/log/audit/audit.log | audit2allow -M freenx</code><br />
<code>semodule -i freenx.pp</code></p>
<p>(6) You can see the policy by reading the .te file.</p>
<p><code>cat freenx.te</code></p>
<pre>module freenx 1.0;

require {
type nx_server_var_lib_t;
type sshd_t;
class file read;
}

#============= sshd_t ==============
allow sshd_t nx_server_var_lib_t:file read;</pre>
<p>(7) Now, try connecting from the client again. It will fail again. Repeat the steps (1) to (5) using &#8216;freenx2&#8242; instead of &#8216;freenx&#8217;.</p>
<p>(8) You will most likely need to repeat the process yet one more time until the connection finally succeeds. So, once again repeat the steps (1) to (5) but this time using &#8216;freenx3&#8242; instead of &#8216;freenx&#8217;.</p>
<p>If you look at the policy files generated, you will find what was added by each action.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.toracat.org/2010/12/selinux-and-freenx/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Search is ON &#8212; An update</title>
		<link>http://blog.toracat.org/2010/05/search-is-on-an-update/</link>
		<comments>http://blog.toracat.org/2010/05/search-is-on-an-update/#comments</comments>
		<pubDate>Mon, 31 May 2010 00:07:55 +0000</pubDate>
		<dc:creator>toracat</dc:creator>
				<category><![CDATA[centos]]></category>

		<guid isPermaLink="false">http://blog.toracat.org/?p=271</guid>
		<description><![CDATA[I talked about getting help for CentOS in February 2009 and presented some Google search results comparing the number of hits between the mailing lists and the forums. That was 15 months ago and I thought I should update the results.  Exactly the same search was performed yesterday (May 29, 2010). Search term  M/L Forums <a href='http://blog.toracat.org/2010/05/search-is-on-an-update/' class='excerpt-more'>[...]</a>]]></description>
				<content:encoded><![CDATA[<p>I talked about <a title="Search is ON" href="http://blog.toracat.org/2009/02/search-is-on-getting-help-for-centos/" target="_blank">getting help for CentOS</a> in February 2009 and presented some Google search results comparing the number of hits between the mailing lists and the forums.  That was 15 months ago and I thought I should update the results.  Exactly the same search was performed yesterday (May 29, 2010).</p>
<p><code><br />
Search term  M/L   Forums<br />
============  === ======<br />
install                               0            25<br />
installation         0             7<br />
kernel                      0          23<br />
driver(s)                0           22<br />
DNS                           3          37<br />
postfix                 19           24<br />
sendmail               5          30<br />
selinux                   0          23<br />
apache                   0          23<br />
httpd                         0          40<br />
xen                            3         33<br />
kickstart               5         25<br />
crash                       2          21<br />
panic                       2          27<br />
</code></p>
<p>Google&#8217;s tendency to pick up forum posts rather than mailing list posts is much more obvious now than it was last year.  It looks as if Google is fond of the forums better than the mailing lists <img src='http://blog.toracat.org/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' />  Or is it simply because there are more posts in the forums?</p>
<p>Regardless of the reason, what this means is that it is important to keep the quality of the forum contents high.  I would say that the current status is quite good; there are a number of forum regulars providing help.  Inappropriate replies, if they appear, get corrected by senior members.  Still, the forums can use more helping hands.  Why don&#8217;t you join in and make this CentOS help venue even better?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.toracat.org/2010/05/search-is-on-an-update/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
