<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Logging all BASH commands to history, and keeping people from deleting/emptying it</title>
	<atom:link href="http://www.dufault.info/blog/logging-all-bash-commands-to-history-and-keeping-people-from-deletingemptying-it/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dufault.info/blog/logging-all-bash-commands-to-history-and-keeping-people-from-deletingemptying-it/</link>
	<description>Ramblings of a phone weenie, Linux sysadmin, and other things geeky</description>
	<lastBuildDate>Wed, 25 Jan 2012 03:51:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Phil Dufault</title>
		<link>http://www.dufault.info/blog/logging-all-bash-commands-to-history-and-keeping-people-from-deletingemptying-it/comment-page-1/#comment-18596</link>
		<dc:creator>Phil Dufault</dc:creator>
		<pubDate>Thu, 29 Sep 2011 07:06:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.dufault.info/blog/?p=186#comment-18596</guid>
		<description>Good catch bogd, I am wrong.</description>
		<content:encoded><![CDATA[<p>Good catch bogd, I am wrong.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bogd</title>
		<link>http://www.dufault.info/blog/logging-all-bash-commands-to-history-and-keeping-people-from-deletingemptying-it/comment-page-1/#comment-15963</link>
		<dc:creator>bogd</dc:creator>
		<pubDate>Sun, 26 Jun 2011 16:13:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.dufault.info/blog/?p=186#comment-15963</guid>
		<description>@Phil: if you&#039;re referring to thadk&#039;s comment, the trick does work. Or, to be more specific, it works if $HISTCONTROL includes ignorespace (which it does by default on some distributions).

Example from Ubuntu Linux 10.04:

bogd@t:~$ echo &quot;c1&quot;
c1
bogd@t:~$ echo &quot;c2&quot;
c2
bogd@t:~$ history &#124; tail -n 3
  504  echo &quot;c1&quot;
  505  echo &quot;c2&quot;
  506  history &#124; tail -n 3
bogd@t:~$  echo &quot;hidden&quot;
[ Notice the space before the command! ]
hidden
bogd@thermite:~$ history &#124; tail -n 5
  503  history
  504  echo &quot;c1&quot;
  505  echo &quot;c2&quot;
  506  history &#124; tail -n 3
  507  history &#124; tail -n 5
[ Missing command.... ]</description>
		<content:encoded><![CDATA[<p>@Phil: if you&#8217;re referring to thadk&#8217;s comment, the trick does work. Or, to be more specific, it works if $HISTCONTROL includes ignorespace (which it does by default on some distributions).</p>
<p>Example from Ubuntu Linux 10.04:</p>
<p>bogd@t:~$ echo &#8220;c1&#8243;<br />
c1<br />
bogd@t:~$ echo &#8220;c2&#8243;<br />
c2<br />
bogd@t:~$ history | tail -n 3<br />
  504  echo &#8220;c1&#8243;<br />
  505  echo &#8220;c2&#8243;<br />
  506  history | tail -n 3<br />
bogd@t:~$  echo &#8220;hidden&#8221;<br />
[ Notice the space before the command! ]<br />
hidden<br />
bogd@thermite:~$ history | tail -n 5<br />
  503  history<br />
  504  echo &#8220;c1&#8243;<br />
  505  echo &#8220;c2&#8243;<br />
  506  history | tail -n 3<br />
  507  history | tail -n 5<br />
[ Missing command.... ]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: VNC Log</title>
		<link>http://www.dufault.info/blog/logging-all-bash-commands-to-history-and-keeping-people-from-deletingemptying-it/comment-page-1/#comment-12847</link>
		<dc:creator>VNC Log</dc:creator>
		<pubDate>Wed, 16 Feb 2011 19:27:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.dufault.info/blog/?p=186#comment-12847</guid>
		<description>[...] logs (yes, it logs, just not a whole lot) 2) Tweak their shell&#039;s history. If it&#039;s bash, here&#039;s a good article.  On a side note; why are they VNC&#039;ing into a system as root? If there&#039;s any way you can break the [...]</description>
		<content:encoded><![CDATA[<p>[...] logs (yes, it logs, just not a whole lot) 2) Tweak their shell&#039;s history. If it&#039;s bash, here&#039;s a good article.  On a side note; why are they VNC&#039;ing into a system as root? If there&#039;s any way you can break the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil Dufault</title>
		<link>http://www.dufault.info/blog/logging-all-bash-commands-to-history-and-keeping-people-from-deletingemptying-it/comment-page-1/#comment-8832</link>
		<dc:creator>Phil Dufault</dc:creator>
		<pubDate>Wed, 18 Aug 2010 19:27:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.dufault.info/blog/?p=186#comment-8832</guid>
		<description>That doesn&#039;t actually work.</description>
		<content:encoded><![CDATA[<p>That doesn&#8217;t actually work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thadk</title>
		<link>http://www.dufault.info/blog/logging-all-bash-commands-to-history-and-keeping-people-from-deletingemptying-it/comment-page-1/#comment-8763</link>
		<dc:creator>thadk</dc:creator>
		<pubDate>Thu, 12 Aug 2010 12:42:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.dufault.info/blog/?p=186#comment-8763</guid>
		<description>Does this account for the Bash trick where you leave a space at the beginning of a command to exempt it from logging to history?</description>
		<content:encoded><![CDATA[<p>Does this account for the Bash trick where you leave a space at the beginning of a command to exempt it from logging to history?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gary</title>
		<link>http://www.dufault.info/blog/logging-all-bash-commands-to-history-and-keeping-people-from-deletingemptying-it/comment-page-1/#comment-5822</link>
		<dc:creator>Gary</dc:creator>
		<pubDate>Thu, 11 Feb 2010 16:18:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.dufault.info/blog/?p=186#comment-5822</guid>
		<description>It looks like RHEL5 only references $HOME/.bashrc and /etc/bashrc when a user types bash at the prompt to open another shell so Lonny&#039;s comment is further supported.</description>
		<content:encoded><![CDATA[<p>It looks like RHEL5 only references $HOME/.bashrc and /etc/bashrc when a user types bash at the prompt to open another shell so Lonny&#8217;s comment is further supported.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lonny</title>
		<link>http://www.dufault.info/blog/logging-all-bash-commands-to-history-and-keeping-people-from-deletingemptying-it/comment-page-1/#comment-4791</link>
		<dc:creator>Lonny</dc:creator>
		<pubDate>Wed, 30 Dec 2009 18:49:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.dufault.info/blog/?p=186#comment-4791</guid>
		<description>IMHO modifications to your bash variables such as PROMPT_COMMAND are better handled in the /etc/bashrc. Moding the var there and setting the var RO was the only way to avoid errors in RH ES 5.4.

Otherwise, very nice complimentary sys mod for psacct. Well done.

Lonny</description>
		<content:encoded><![CDATA[<p>IMHO modifications to your bash variables such as PROMPT_COMMAND are better handled in the /etc/bashrc. Moding the var there and setting the var RO was the only way to avoid errors in RH ES 5.4.</p>
<p>Otherwise, very nice complimentary sys mod for psacct. Well done.</p>
<p>Lonny</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Awesome article</title>
		<link>http://www.dufault.info/blog/logging-all-bash-commands-to-history-and-keeping-people-from-deletingemptying-it/comment-page-1/#comment-3112</link>
		<dc:creator>Awesome article</dc:creator>
		<pubDate>Mon, 07 Sep 2009 05:05:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.dufault.info/blog/?p=186#comment-3112</guid>
		<description>Thanks!!</description>
		<content:encoded><![CDATA[<p>Thanks!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Johnson</title>
		<link>http://www.dufault.info/blog/logging-all-bash-commands-to-history-and-keeping-people-from-deletingemptying-it/comment-page-1/#comment-1325</link>
		<dc:creator>Andrew Johnson</dc:creator>
		<pubDate>Tue, 17 Feb 2009 21:16:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.dufault.info/blog/?p=186#comment-1325</guid>
		<description>Glad to see you&#039;re back at it and with a great post no less!</description>
		<content:encoded><![CDATA[<p>Glad to see you&#8217;re back at it and with a great post no less!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

