<?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>Admins Goodies &#187; linux</title>
	<atom:link href="http://adminsgoodies.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://adminsgoodies.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Fri, 24 May 2013 16:33:10 +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>How to remember a mount point</title>
		<link>http://adminsgoodies.com/how-to-remember-a-mount-point/</link>
		<comments>http://adminsgoodies.com/how-to-remember-a-mount-point/#comments</comments>
		<pubDate>Fri, 24 May 2013 16:33:10 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[automount]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[volumes]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/how-to-remember-a-mount-point/</guid>
		<description><![CDATA[I am using Red Hat Enterprise 6.3 and I have just mounted a new volume in one folder of my preference. After reboot that mount point was lost and the volume was mounted at his original place. In which place I can set my mount call so that I can have my volume always at the same place? Do I have to look at init.d or is there a better place? Asked by Abruzzo Forte [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>I am using Red Hat Enterprise 6.3 and I have just mounted a new volume in one folder of my preference.</p>
<p>After reboot that mount point was lost and the volume was mounted at his original place. </p>
<p>In which place I can set my <code>mount</code> call so that I can have my volume always at the same place? Do I have to look at init.d or is there a better place?</p>
<div class="author">Asked by <a href="http://serverfault.com/users/99246/abruzzo-forte-e-gentile" target="_blank">Abruzzo Forte e Gentile</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p><code>/etc/fstab</code> is the traditional configuration file to define permanent mounts.</p>
<div class="author">Answered by <a href="http://serverfault.com/users/157149/nickw" target="_blank">NickW</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/510319/how-to-remember-a-mount-point" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/how-to-remember-a-mount-point/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SCP transfer only modified files</title>
		<link>http://adminsgoodies.com/scp-transfer-only-modified-files/</link>
		<comments>http://adminsgoodies.com/scp-transfer-only-modified-files/#comments</comments>
		<pubDate>Thu, 23 May 2013 16:33:20 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[scp]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/scp-transfer-only-modified-files/</guid>
		<description><![CDATA[I&#8217;m using below command to transfer files cross server scp -rc blowfish /source/directory/* username@domain.net:/destination/directory Is there a way to transfer only files modified files just like update command for cp? Asked by Jae Choi rsync is your friend. rsync -ru /source/directory/* username@domain.net:/destination/directory If you want it to delete files at the destination that no longer exist at the source, add the --delete option. Answered by Flup Check more discussion of this question.]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>I&#8217;m using below command to transfer files cross server</p>
<pre class="prettyprint"><code>scp -rc blowfish /source/directory/* username@domain.net:/destination/directory
</code></pre>
<p>Is there a way to transfer only files modified files just like <code>update</code> command for <code>cp</code>?</p>
<div class="author">Asked by <a href="http://serverfault.com/users/150250/jae-choi" target="_blank">Jae Choi</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p><code>rsync</code> is your friend.</p>
<pre class="prettyprint"><code>rsync -ru /source/directory/* username@domain.net:/destination/directory
</code></pre>
<p>If you want it to delete files at the destination that no longer exist at the source, add the <code>--delete</code> option.</p>
<div class="author">Answered by <a href="http://serverfault.com/users/156599/flup" target="_blank">Flup</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/510278/scp-transfer-only-modified-files" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/scp-transfer-only-modified-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How can I automate clearing and resetting a Linux user&#8217;s home directory to a default?</title>
		<link>http://adminsgoodies.com/how-can-i-automate-clearing-and-resetting-a-linux-users-home-directory-to-a-default-2/</link>
		<comments>http://adminsgoodies.com/how-can-i-automate-clearing-and-resetting-a-linux-users-home-directory-to-a-default-2/#comments</comments>
		<pubDate>Thu, 23 May 2013 16:33:06 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[user-accounts]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/how-can-i-automate-clearing-and-resetting-a-linux-users-home-directory-to-a-default-2/</guid>
		<description><![CDATA[I&#8217;m helping to teach two Unix courses next week. Users will be granted an account on a RHEL 5 machine, during which time they&#8217;ll add files to their /home folder, update their .bashrc and other dotfiles, and perform other general messiness that needs to be cleaned up. Students in the second session will be reusing the user accounts of the folks in the first session. I&#8217;d like to automate the cleanup of their accounts, so [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>I&#8217;m helping to teach two Unix courses next week. Users will be granted an account on a RHEL 5 machine, during which time they&#8217;ll add files to their <code>/home</code> folder, update their <code>.bashrc</code> and other dotfiles, and perform other general messiness that needs to be cleaned up.</p>
<p>Students in the second session will be reusing the user accounts of the folks in the first session. I&#8217;d like to automate the cleanup of their accounts, so new users can start fresh.</p>
<p>I&#8217;m sure I could write a shell script that runs a <code>su -u $USER_ID</code> and lays down an &#8220;original&#8221; set of good files in their homedir, and removes anything else it finds. <strong>Are there other tools that will help me with this clean/reset operation?</strong> I don&#8217;t have any experience with Puppet, Chef, or other tools. Would they be helpful to do something like this?</p>
<p>To provide a scope of the problem, there&#8217;s about 30 user accounts, I know all the userid/passwords, and they&#8217;re all created on the same RHEL box.</p>
<div class="author">Asked by <a href="http://serverfault.com/users/63035/matthewsteele" target="_blank">matthewsteele</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>There are many ways that would help:</p>
<ul>
<li>remove the complete home directory and copy all files from <code>/etc/skel</code> back to the homedir. Change permissions afterwards.</li>
<li>put the system in a virtual machine, make a snapshot and revert to the snapshot after lesson 1</li>
<li>find something like a kiosk mode in RHEL. Ubuntu has something like that, which automatically restores the home during logoff</li>
<li>put the home on a btrfs filesystem, make a snapshot and revert after lesson 1</li>
<li><code>tar</code> the home dir before lesson, delete home afterwards, restore from <code>tar</code></li>
<li>&#8230;</li>
</ul>
<p>And learning other tools like Puppet/Chef is a little bit too much if you want results next week.</p>
<div class="author">Answered by <a href="http://serverfault.com/users/75291/mailq" target="_blank">mailq</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/309149/how-can-i-automate-clearing-and-resetting-a-linux-users-home-directory-to-a-def" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/how-can-i-automate-clearing-and-resetting-a-linux-users-home-directory-to-a-default-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>REJECT vs DROP when using iptables</title>
		<link>http://adminsgoodies.com/reject-vs-drop-when-using-iptables/</link>
		<comments>http://adminsgoodies.com/reject-vs-drop-when-using-iptables/#comments</comments>
		<pubDate>Wed, 08 May 2013 16:33:51 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/reject-vs-drop-when-using-iptables/</guid>
		<description><![CDATA[Is there any reason why I would want to have iptables -A INPUT -j REJECT instead of iptables -A INPUT -j DROP Asked by Mike B As a general rule, use REJECT when you want the other end to know the port is unreachable&#8217; use DROP for connections to hosts you don&#8217;t want people to see. Usually, all rules for connections inside your LAN should use REJECT. For the Internet, With the exception of ident [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>Is there any reason why I would want to have </p>
<pre class="prettyprint"><code>iptables -A INPUT -j REJECT
</code></pre>
<p>instead of </p>
<pre class="prettyprint"><code>iptables -A INPUT -j DROP
</code></pre>
<div class="author">Asked by <a href="http://serverfault.com/users/21875/mike-b" target="_blank">Mike B</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>As a general rule, use REJECT when you want the other end to know the port is unreachable&#8217; use DROP for connections to hosts you don&#8217;t want people to see.</p>
<p>Usually, all rules for connections inside your LAN should use REJECT. For the Internet,  With the exception of ident on certain servers, connections from the Internet are usually DROPPED.</p>
<p>Using DROP makes the connection appear to be to an unoccupied IP address.  Scanners may choose not to continue scanning addresses which appear unoccupied.  Given that NAT can be used to redirect a connection on the firewall, the existence of a well known service does not necessarily indicate the existence of a server on an address.</p>
<p>Ident should be passed or rejected on any address providing SMTP service.  However, use of Ident look-ups by SMTP serves has fallen out of use.  There are chat protocols which also rely on a working ident service. </p>
<div class="author">Answered by <a href="http://serverfault.com/users/36241/billthor" target="_blank">BillThor </a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/157375/reject-vs-drop-when-using-iptables" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/reject-vs-drop-when-using-iptables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FTP ip reached by using SFTP command but not FTP</title>
		<link>http://adminsgoodies.com/ftp-ip-reached-by-using-sftp-command-but-not-ftp/</link>
		<comments>http://adminsgoodies.com/ftp-ip-reached-by-using-sftp-command-but-not-ftp/#comments</comments>
		<pubDate>Tue, 07 May 2013 16:34:06 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[sftp]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/ftp-ip-reached-by-using-sftp-command-but-not-ftp/</guid>
		<description><![CDATA[I&#8217;ve been given by a company their FTP IP where I should connect to. I got also username and password. That is supposed to work with port 21, right? I tried to use FTP command-line but it didn&#8217;t work; I tried my chance with sftp command-line and, using their credentials, I am authorized and connect without any problem. SFTP is supposed to use port 22 (and I used wireshark to check that). Am I right [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>I&#8217;ve been given by a company their FTP IP  where I should connect to. I got also username and password. That is supposed to work with port 21, right? </p>
<p>I tried to use FTP command-line but it didn&#8217;t work; I tried my chance with sftp command-line and, using their credentials, I am authorized and connect without any problem.</p>
<p>SFTP is supposed to use port 22 (and I used wireshark to check that).</p>
<p>Am I right that this is just luck?  I feel a bit confused.</p>
<p>I am using LINUX CentOs 6.4.</p>
<div class="author">Asked by <a href="http://serverfault.com/users/99246/abruzzo-forte-e-gentile" target="_blank">Abruzzo Forte e Gentile</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>The company may only allow SFTP, they don&#8217;t have to allow both. They are two different protocols, SFTP being the <a href="http://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol"><code>SSH File Transfer Protocol</code></a> and really isn&#8217;t related to FTP much. This is keeping it extremely simple, differences between the two are beyond the scope of this question.</p>
<p>It&#8217;s possible they didn&#8217;t specify that you should use SFTP and not FTP, assuming they&#8217;re the same. Most FTP clients I&#8217;ve used don&#8217;t automatically try port 22 by default, you have to tell them. </p>
<p>Basically they&#8217;ve given you ssh access to their server, whether this was accidental or not I can&#8217;t tell you.</p>
<div class="author">Answered by <a href="http://serverfault.com/users/154913/mdmoore313" target="_blank">MDMoore313</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/505651/ftp-ip-reached-by-using-sftp-command-but-not-ftp" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/ftp-ip-reached-by-using-sftp-command-but-not-ftp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The XFS filesystem is broken in RHEL/CentOS 6.x &#8211; What can I do about it?</title>
		<link>http://adminsgoodies.com/the-xfs-filesystem-is-broken-in-rhelcentos-6-x-what-can-i-do-about-it/</link>
		<comments>http://adminsgoodies.com/the-xfs-filesystem-is-broken-in-rhelcentos-6-x-what-can-i-do-about-it/#comments</comments>
		<pubDate>Sat, 04 May 2013 16:33:45 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[filesystems]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[xfs]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/the-xfs-filesystem-is-broken-in-rhelcentos-6-x-what-can-i-do-about-it/</guid>
		<description><![CDATA[Recent versions of RHEL/CentOS (EL6) brought some interesting changes to the XFS filesystem I&#8217;ve depended on heavily for over a decade. I spent part of last summer chasing down an XFS sparse file situation resulting from a poorly-documented kernel backport. Others have had unfortunate performance issues or inconsistent behavior since moving to EL6. XFS was my default filesystem for data and growth-partitions, as it offered stability, scalability and a good performance boost over the default [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>Recent versions of RHEL/CentOS (EL6) brought some interesting changes to the <a href="http://en.wikipedia.org/wiki/XFS" rel="nofollow">XFS filesystem</a> I&#8217;ve depended on <em>heavily</em> for over a decade. I spent part of last summer chasing down an <a href="http://serverfault.com/questions/406069/why-are-my-xfs-filesystems-suddenly-consuming-more-space-and-full-of-sparse-file">XFS sparse file situation</a> resulting from a poorly-documented kernel backport. Others have had <a href="http://serverfault.com/questions/483413/hp-dl380p-gen8-p420i-controller-i-o-oddity-on-xfs-partitions">unfortunate performance issues</a> or <a href="http://serverfault.com/questions/387918/centos-6-doing-lots-more-io-than-centos-5">inconsistent behavior</a> since moving to EL6.</p>
<p>XFS was my default filesystem for data and growth-partitions, as it offered stability, scalability and a good performance boost over the default ext3 filesystems. </p>
<p>There&#8217;s an issue with XFS on EL6 systems that surfaced in November 2012. I noticed that my servers were showing abnormaly-high system loads, even when idle. In one case, an unloaded system would show a constant load average of 3+. In others, there was a 1+ bump in load. The number of mounted XFS filesystems seemed to influence the severity of the load increase.</p>
<p><em>System has two active XFS filesystems. Load is +2 following upgrade to the affected kernel.</em><br />
<a href="http://i.stack.imgur.com/VI9ES.png" rel="nofollow"><img src="http://i.stack.imgur.com/VI9ES.png" alt="enter image description here"></a></p>
<p>Digging deeper, I found a few threads on the <a href="http://comments.gmane.org/gmane.comp.file-systems.xfs.general/49028" rel="nofollow">XFS mailing list</a> that pointed to an increased frequency of the <code>xfsaild</code> process sitting in the <strong>STAT D</strong> state. The corresponding <a href="http://bugs.centos.org/view.php?id=6087" rel="nofollow">CentOS Bug Tracker</a> and <a href="https://bugzilla.redhat.com/show_bug.cgi?id=883905" rel="nofollow">Red Hat Bugzilla</a> entries outline the specifics of the issue and conclude that this is not a performance problem; only an error in the reporting of system load in kernels newer than <strong>2.6.32-279.14.1.el6</strong>. </p>
<p><strong>WTF?!?</strong> </p>
<p>In a one-off situation, I understand that the load reporting may not be a big deal. Try managing that with your NMS and hundreds or thousands of servers! This was identified in <em>November 2012</em> at kernel <strong>2.6.32-279.14.1.el6</strong> under EL6.3. Kernels <strong>2.6.32-279.19.1.el6</strong> and <strong>2.6.32-279.22.1.el6</strong> were released in subsequent months (December 2012 and February 2013) with no change to this behavior. There&#8217;s even been a new minor release of the operating system since this issue was identified. EL6.4 was released and is now on kernel <strong>2.6.32-358.2.1.el6</strong>, which exhibits the same behavior.</p>
<p>I&#8217;ve had a new system build queue and have had to work around the issue, either locking kernel versions at the pre-November 2012 release for EL6.3 or just not using XFS, opting for <a href="http://en.wikipedia.org/wiki/Ext4" rel="nofollow">ext4</a> or <a href="http://zfsonlinux.org" rel="nofollow">ZFS</a>, at a <a href="http://i.stack.imgur.com/H83yt.png" rel="nofollow">severe performance penalty</a> for the specific custom application running atop. The application in question relies heavily on some of the XFS filesystem attributes to account for deficiencies in the application design.</p>
<p>Going behind Red Hat&#8217;s <a href="https://access.redhat.com/site/solutions/293493" rel="nofollow">paywalled knowledgebase site</a>, an entry appears stating:</p>
<blockquote>
<p>High load average is observed after installing kernel<br />
  2.6.32-279.14.1.el6. The high load average is caused by xfsaild going into D state for each XFS formatted device.</p>
<p>There is currently no resolution for this issue. It is currently being<br />
  tracked via Bugzilla #883905. Workaround Downgrade the installed<br />
  kernel package to a version lower then 2.6.32-279.14.1.</p>
</blockquote>
<p><em>(except downgrading kernels not an option on RHEL 6.4&#8230;)</em></p>
<p>So we&#8217;re 4+ months into this problem with no real fix planned for the EL6.3 or EL6.4 OS releases. There&#8217;s a proposed fix for EL6.5 and a kernel source patch available&#8230; But my question is:</p>
<p><strong>At what point does it make sense to depart from the OS-provided kernels and packages when the upstream maintainer has broken an important feature?</strong></p>
<p>Red Hat introduced this bug. They <em>should</em> incorporate a fix into an errata kernel. One of the advantages of using enterprise operating systems is that they provide a <a href="http://serverfault.com/questions/461271/how-should-an-it-department-choose-a-linux-distribution-technical-reasons/461332#461332">consistent and predictable platform target</a>. This bug disrupted systems already in production during a patch cycle and reduced confidence in deploying new systems. While I could apply one of the <a href="https://bugzilla.redhat.com/attachment.cgi?id=674895" rel="nofollow">proposed patches to the source code</a>, how scalable is that? It would require some vigilance to keep updated as the OS changes.</p>
<p>What&#8217;s the right move here?</p>
<ul>
<li>We know this could possibly be fixed, but not when.</li>
<li>Supporting your own kernel in a Red Hat ecosystem has its own set of caveats.</li>
<li>What&#8217;s the impact on support eligibility?</li>
<li>Should I just overlay a working EL6.3 kernel on top of newly-build EL6.4 servers to gain the proper XFS functionality?</li>
<li>Should I just wait until this is officially fixed?</li>
<li>What does this say about the lack of control we have over enterprise Linux release cycles?</li>
<li>Was relying on an XFS filesystem for so long a planning/design mistake?</li>
</ul>
<p>Edit:</p>
<p>This patch was incorporated into the most recent <a href="http://wiki.centos.org/AdditionalResources/Repositories/CentOSPlus/" rel="nofollow">CentOSPlus</a> kernel release (<strong>kernel-2.6.32-358.2.1.el6.centos.plus</strong>). I&#8217;m testing this on my CentOS systems, but this doesn&#8217;t help much for the Red Hat-based servers.</p>
<div class="author">Asked by <a href="http://serverfault.com/users/13325/ewwhite" target="_blank">ewwhite</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<blockquote>
<p>At what point does it make sense to depart from the OS-provided kernels and packages when the upstream maintainer has broken an important feature?</p>
</blockquote>
<p>&#8220;At the point where the vendor&#8217;s kernel or packages are so horribly broken that they impact your business&#8221; is my general answer (coincidentally this is also about the point where I say it makes sense to start looking at ways to depart from the vendor relationship).</p>
<p>Basically as you and others have said, RedHat seems to not want to patch this in their distributed kernel (for whatever reason).  That pretty much leaves you in the situation of having to roll your own kernel (keeping it up to date on patches yourself, maintaining your own package and installing it on your systems with Puppet or similar, or running a package server that Yum or whatever they use today can reference), or taking your marbles and going home.</p>
<hr />
<p>Yes I know taking your marbles and going home is often an expensive proposition &#8212; switching OS vendors is a huge pain, especially in the Linux world where the flavors are radically different from an administrative standpoint.<br />
Other options like going totally CentOS are also unappealing (because you lose support, and you&#8217;re still getting essentially RedHat&#8217;s code built by someone else so you&#8217;d still have this bug).  </p>
<p>Unfortunately unless enough people (i.e. &#8220;huge companies) take their marbles and go home the vendor won&#8217;t care so much about screwing people over by shipping bad code and not fixing it.</p>
<div class="author">Answered by <a href="http://serverfault.com/users/32986/voretaq7" target="_blank">voretaq7</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/497049/the-xfs-filesystem-is-broken-in-rhel-centos-6-x-what-can-i-do-about-it" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/the-xfs-filesystem-is-broken-in-rhelcentos-6-x-what-can-i-do-about-it/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>rm + how to remove file with special Characters</title>
		<link>http://adminsgoodies.com/rm-how-to-remove-file-with-special-characters/</link>
		<comments>http://adminsgoodies.com/rm-how-to-remove-file-with-special-characters/#comments</comments>
		<pubDate>Thu, 02 May 2013 16:33:41 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[ksh]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[rm]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/rm-how-to-remove-file-with-special-characters/</guid>
		<description><![CDATA[I have this file in my linux machine: ----------9976723563nneh4_-----192.9.200.4 I try to delete this file but I cant as all see here: what need to add to rm in order to remove this file ? rm "----------9976723563nneh4_-----192.9.200.4" rm: illegal option -- --------9976723563nneh4_-----192.9.200.4 usage: rm [-fiRr] file ... . rm '----------9976723563nneh4_-----192.9.200.4' rm: illegal option -- --------9976723563nneh4_-----192.9.200.4 usage: rm [-fiRr] file ... Asked by yael rm -- ----------9976723563nneh4_-----192.9.200.4 You need -- in order to tell rm (and [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>I have this file in my linux machine: </p>
<pre class="prettyprint"><code> ----------9976723563nneh4_-----192.9.200.4
</code></pre>
<p>I try to delete this file but I cant as all see here:</p>
<p>what need to add to rm in order to remove this file ?</p>
<pre class="prettyprint"><code>rm "----------9976723563nneh4_-----192.9.200.4"
rm: illegal option -- --------9976723563nneh4_-----192.9.200.4
usage: rm [-fiRr] file ...
</code></pre>
<p>.</p>
<pre class="prettyprint"><code>rm '----------9976723563nneh4_-----192.9.200.4'
rm: illegal option -- --------9976723563nneh4_-----192.9.200.4
usage: rm [-fiRr] file ...
</code></pre>
<div class="author">Asked by <a href="http://serverfault.com/users/117906/yael" target="_blank">yael</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<pre class="prettyprint"><code>rm -- ----------9976723563nneh4_-----192.9.200.4
</code></pre>
<p>You need <code>--</code> in order to tell <code>rm</code> (and more or less all other GNU software) that all following parameters are file names even when beginning with &#8220;-&#8221;. Otherwise (and in your case) the file name is confused with options. Another possibility is</p>
<pre class="prettyprint"><code>rm ./----------9976723563nneh4_-----192.9.200.4
</code></pre>
<div class="author">Answered by <a href="http://serverfault.com/users/158153/hauke-laging" target="_blank">Hauke Laging</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/504503/rm-how-to-remove-file-with-special-characters" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/rm-how-to-remove-file-with-special-characters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How do I log every command executed by a user?</title>
		<link>http://adminsgoodies.com/how-do-i-log-every-command-executed-by-a-user/</link>
		<comments>http://adminsgoodies.com/how-do-i-log-every-command-executed-by-a-user/#comments</comments>
		<pubDate>Mon, 22 Apr 2013 16:33:29 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[user-management]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/how-do-i-log-every-command-executed-by-a-user/</guid>
		<description><![CDATA[I want to monitor all user&#8217;s activity in my server. Even when the user executes a shell command from some editor like vim I want to see them in the log file. I have checked the tool acct but it is not listing the complete commands. (Please correct me if I have missed some options which does already). Which Linux tool I should be looking at to solve this problem? Asked by Supratik Add this [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>I want to monitor all user&#8217;s activity in my server.</p>
<p>Even when the user executes a shell command from some editor like vim I want to<br />
see them in the log file.</p>
<p>I have checked the tool acct but it is not listing the complete commands.<br />
(Please correct me if I have missed some options which does already).</p>
<p>Which Linux tool I should be looking at to solve this problem?</p>
<div class="author">Asked by <a href="http://serverfault.com/users/10303/supratik" target="_blank">Supratik</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>Add this line to your pam config responsible for logins (its system-auth on redhat based distros)</p>
<pre class="prettyprint"><code>session    required     pam_tty_audit.so enable=*
</code></pre>
<p>To find out what was done, you can use.</p>
<pre class="prettyprint"><code>ausearch -ts &lt;some_timestamp&gt; -m tty -i
</code></pre>
<p>This produces an output like this:</p>
<pre class="prettyprint"><code> type=TTY msg=audit(11/30/2011 15:38:39.178:12763684) : tty pid=32377 uid=root
 auid=matthew major=136 minor=2 comm=bash data=&lt;up&gt;,&lt;ret&gt;
</code></pre>
<p>The only downside to this is is can be a little bit difficult to read, but it is much better than most proposed solutions since in theory it could be used to record an entire session, warts n all.</p>
<p>Edit: Oh and you can use aureport to generate a list that can be more helpful.</p>
<pre class="prettyprint"><code># aureport --tty
...
12. 11/30/2011 15:50:54 12764042 501 ? 4294967295 bash "d",&lt;^D&gt;
13. 11/30/2011 15:52:30 12764112 501 ? 4294967295 bash "aureport --ty",&lt;ret&gt;
14. 11/30/2011 15:52:31 12764114 501 ? 4294967295 bash &lt;up&gt;,&lt;left&gt;,&lt;left&gt;,"t",&lt;ret&gt;
</code></pre>
<div class="author">Answered by <a href="http://serverfault.com/users/75118/mife" target="_blank">MIfe</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/336217/how-do-i-log-every-command-executed-by-a-user" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/how-do-i-log-every-command-executed-by-a-user/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is it possible to never shutdown linux?</title>
		<link>http://adminsgoodies.com/is-it-possible-to-never-shutdown-linux/</link>
		<comments>http://adminsgoodies.com/is-it-possible-to-never-shutdown-linux/#comments</comments>
		<pubDate>Tue, 09 Apr 2013 16:33:13 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/is-it-possible-to-never-shutdown-linux/</guid>
		<description><![CDATA[Assuming hardware failure is not a factor, and the requirement of being able to update periodically, is it possible to never shutdown Linux? I typically do a full reboot after updates, especially kernel updates, but is there a way to keep my machine on and still do these? People always hear about incredible up-time, but how is that really possible if you must reboot after major updates. Maybe a different run level? But then how [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>Assuming hardware failure is not a factor, and the requirement of being able to update periodically, is it possible to never shutdown Linux?</p>
<p>I typically do a full reboot after updates, especially kernel updates, but is there a way to keep my machine on and still do these? People always hear about incredible up-time, but how is that really possible if you must reboot after major updates.</p>
<p>Maybe a different run level? But then how would the kernel update kick in?</p>
<div class="author">Asked by <a href="http://serverfault.com/users/164245/snakedoc" target="_blank">SnakeDoc</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>Server/Box &#8220;uptime&#8221; is an illusion. Unless your objective is to have incredible uptime in order to prove some kind of point then I wouldn&#8217;t focus on it.</p>
<p>What matters is <em>service availability</em>. If you need a service to be available all the time then it might be useful to improve individual system uptime <strong>or</strong> it may well be simpler <em>and more cost effective</em> to create a cluster, for example, than to try and take the availability of a commodity server from 99% to 99.999% </p>
<div class="author">Answered by <a href="http://serverfault.com/users/7783/robm" target="_blank">RobM</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/496983/is-it-possible-to-never-shutdown-linux" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/is-it-possible-to-never-shutdown-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What does “- &#8211; -” in &#8216;echo “- &#8211; -” &gt; /sys/class/scsi_host/host0/scan&#8217; mean?</title>
		<link>http://adminsgoodies.com/what-does-in-echo-sysclassscsi_hosthost0scan-mean/</link>
		<comments>http://adminsgoodies.com/what-does-in-echo-sysclassscsi_hosthost0scan-mean/#comments</comments>
		<pubDate>Fri, 22 Mar 2013 16:34:50 +0000</pubDate>
		<dc:creator>tom</dc:creator>
				<category><![CDATA[General Questions]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[scsi]]></category>

		<guid isPermaLink="false">http://adminsgoodies.com/what-does-in-echo-sysclassscsi_hosthost0scan-mean/</guid>
		<description><![CDATA[I know the linux command echo "- - -" &#62; /sys/class/scsi_host/host0/scan is used to rescan scsi host. But what does &#8220;- &#8211; -&#8221; mean in the command? Asked by Harold Chan The three values stand for channel, SCSI target ID, and LUN. The dashes act as wildcards meaning &#8220;rescan everything&#8221; A quick google search turns up this RHEL doc (and dozens of other answers) This is the same command described in Section 7, “Adding a [...]]]></description>
				<content:encoded><![CDATA[<h3 class="pq"><img src="http://adminsgoodies.com/imgs/question.png" alt="Question" /></h3>
<p>I know the linux command</p>
<pre class="prettyprint"><code>echo "- - -" &gt; /sys/class/scsi_host/host0/scan
</code></pre>
<p>is used to rescan scsi host. But what does &#8220;- &#8211; -&#8221; mean in the command?</p>
<div class="author">Asked by <a href="http://serverfault.com/users/54534/harold-chan" target="_blank">Harold Chan</a></div>
<h3 class="pa"><img src="http://adminsgoodies.com/imgs/answer.png" alt="Answer" /></h3>
<p>The three values stand for channel, SCSI target ID, and LUN. The dashes act as wildcards meaning &#8220;rescan everything&#8221;</p>
<p><a href="https://www.google.com/search?q=/sys/class/scsi_host/host0/scan">A quick google search</a> turns up <a href="https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Online_Storage_Reconfiguration_Guide/scanning-storage-interconnects.html">this RHEL doc (and dozens of other answers)</a></p>
<blockquote>
<p>This is the same command described in Section 7, “Adding a Storage Device or Path” to add a storage device or path. In this case, however, the channel number, SCSI target ID, and LUN values are replaced by wildcards. Any combination of identifiers and wildcards is allowed, allowing you to make the command as specific or broad as needed. This procedure will add LUNs, but not remove them.</p>
</blockquote>
<div class="author">Answered by <a href="http://serverfault.com/users/10472/mdmarra" target="_blank">MDMarra</a></div>
<p class="ref-link">Check <a href="http://serverfault.com/questions/490397/what-does-in-echo-sys-class-scsi-host-host0-scan-mean" target="_blank">more discussion</a> of this question.</p>
]]></content:encoded>
			<wfw:commentRss>http://adminsgoodies.com/what-does-in-echo-sysclassscsi_hosthost0scan-mean/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 2.768 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2013-05-24 19:36:04 -->
