<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Bash History Config for SMBs in Spark Firewall (SMB)</title>
    <link>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Bash-History-Config-for-SMBs/m-p/243803#M12257</link>
    <description>&lt;P&gt;I did set mine to /var/log/mybashist, did a touch /var/log/mybashist, and after log out/in or disconnect/reconnect it shows the last commands. Compare cat /var/log/mybashist with output of history.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Mar 2025 11:30:44 GMT</pubDate>
    <dc:creator>G_W_Albrecht</dc:creator>
    <dc:date>2025-03-14T11:30:44Z</dc:date>
    <item>
      <title>Bash History Config for SMBs</title>
      <link>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Bash-History-Config-for-SMBs/m-p/243740#M12249</link>
      <description>&lt;P&gt;Dear all,&lt;BR /&gt;&lt;BR /&gt;would you please help me out with my "issue" :-)? How do I "save" bash history on the small embedded boxes?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;in Gaia you just have to edit&amp;nbsp;&lt;STRONG&gt;/etc/bashrc&amp;nbsp;&lt;/STRONG&gt;the parameter&amp;nbsp;export HISTFILESIZE=&lt;STRONG&gt;10000&amp;nbsp;&lt;/STRONG&gt;and done.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But on the SMBs it's not the same...&lt;BR /&gt;&lt;BR /&gt;I've found an old article but the "bash" history doesn't work:&lt;/P&gt;&lt;P&gt;echo $HISTFILE&lt;SPAN&gt;&amp;nbsp;returns:&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;/dev/null&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Use&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;vi /pfrm2.0/etc/bashrc&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;and change the specific line to&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;export HISTFILE=$HOME/.bash_history&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After this change exit the session then login again and now you should get&lt;/SPAN&gt;&lt;BR /&gt;echo $HISTFILE&lt;BR /&gt;&lt;U&gt;//.bash_history&lt;/U&gt;&lt;/P&gt;&lt;P&gt;After I login again on to the box the history is empty.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;BR /&gt;&lt;BR /&gt;KR&lt;BR /&gt;Rok&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 13:07:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Bash-History-Config-for-SMBs/m-p/243740#M12249</guid>
      <dc:creator>Mlinko</dc:creator>
      <dc:date>2025-03-13T13:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Bash History Config for SMBs</title>
      <link>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Bash-History-Config-for-SMBs/m-p/243742#M12250</link>
      <description>&lt;P&gt;In &lt;STRONG&gt;/pfrm2.0/etc/bashrc&lt;/STRONG&gt; we see that $HISTFILE&lt;SPAN&gt; is defined as &lt;/SPAN&gt;&lt;EM&gt;/dev/null.&lt;/EM&gt; I tried to use a real logfile and all works as expected now!&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 08:23:43 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Bash-History-Config-for-SMBs/m-p/243742#M12250</guid>
      <dc:creator>G_W_Albrecht</dc:creator>
      <dc:date>2025-03-14T08:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Bash History Config for SMBs</title>
      <link>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Bash-History-Config-for-SMBs/m-p/243748#M12251</link>
      <description>&lt;P&gt;You have to set it in /pfrm2.0/etc/bashrc then it works - just tried it.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 15:08:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Bash-History-Config-for-SMBs/m-p/243748#M12251</guid>
      <dc:creator>Steffen_Appel</dc:creator>
      <dc:date>2025-03-13T15:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Bash History Config for SMBs</title>
      <link>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Bash-History-Config-for-SMBs/m-p/243802#M12256</link>
      <description>&lt;P&gt;Which Parameter should I set in the&amp;nbsp;&lt;SPAN&gt;/pfrm2.0/etc/bashrc ? The same as mentioned in my part?&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;export HISTFILE=$HOME/.bash_history&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;I'did set it to .bash_history in the file you mentioned, but after reconecting to the GW per SSH the history is not there.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 10:44:16 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Bash-History-Config-for-SMBs/m-p/243802#M12256</guid>
      <dc:creator>Mlinko</dc:creator>
      <dc:date>2025-03-14T10:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Bash History Config for SMBs</title>
      <link>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Bash-History-Config-for-SMBs/m-p/243803#M12257</link>
      <description>&lt;P&gt;I did set mine to /var/log/mybashist, did a touch /var/log/mybashist, and after log out/in or disconnect/reconnect it shows the last commands. Compare cat /var/log/mybashist with output of history.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 11:30:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Bash-History-Config-for-SMBs/m-p/243803#M12257</guid>
      <dc:creator>G_W_Albrecht</dc:creator>
      <dc:date>2025-03-14T11:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Bash History Config for SMBs</title>
      <link>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Bash-History-Config-for-SMBs/m-p/243908#M12268</link>
      <description>&lt;P&gt;Yes the HISTFILE, please be aware, that everything except /pfrm2.0 is wiped upon reboot.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 10:21:21 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Bash-History-Config-for-SMBs/m-p/243908#M12268</guid>
      <dc:creator>Steffen_Appel</dc:creator>
      <dc:date>2025-03-17T10:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Bash History Config for SMBs</title>
      <link>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Bash-History-Config-for-SMBs/m-p/243909#M12269</link>
      <description>&lt;P&gt;/var/log will be wiped upon rebooting.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 10:22:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Bash-History-Config-for-SMBs/m-p/243909#M12269</guid>
      <dc:creator>Steffen_Appel</dc:creator>
      <dc:date>2025-03-17T10:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Bash History Config for SMBs</title>
      <link>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Bash-History-Config-for-SMBs/m-p/243950#M12270</link>
      <description>&lt;P&gt;I know that &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; Just for testing. I do not need this bash history....&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 13:39:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Spark-Firewall-SMB/Bash-History-Config-for-SMBs/m-p/243950#M12270</guid>
      <dc:creator>G_W_Albrecht</dc:creator>
      <dc:date>2025-03-17T13:39:55Z</dc:date>
    </item>
  </channel>
</rss>

