<?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 -bash: /bin/fwaccel_autocomplete.sh: No such file or directory in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/bash-bin-fwaccel-autocomplete-sh-No-such-file-or-directory/m-p/223181#M42792</link>
    <description>&lt;P&gt;&lt;SPAN&gt;-bash: /bin/fwaccel_autocomplete.sh: No such file or directory&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This occurs when ssh is used before the FTW wizard creates the $MDS_FWDIR environment variables and installs&amp;nbsp;&lt;SPAN&gt;fwaccel_autocomplete.sh&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is how to reproduce:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create new Check Point gateway or SMS from ISO (do not run FTW)&lt;/LI&gt;&lt;LI&gt;Log in from the Console&lt;/LI&gt;&lt;LI&gt;set hostname CPTEMPLATE&lt;/LI&gt;&lt;LI&gt;set interface eth0 ipv4-address [your_ip] mask-length [your_mask-length]&lt;/LI&gt;&lt;LI&gt;save config&lt;/LI&gt;&lt;LI&gt;Set up ansible user&lt;UL&gt;&lt;LI&gt;add user ansible uid 103 homedir /home/ansible&lt;/LI&gt;&lt;LI&gt;set user ansible password&lt;/LI&gt;&lt;LI&gt;add rba user ansible roles adminRole&lt;/LI&gt;&lt;LI&gt;set user ansible shell /bin/bash&lt;/LI&gt;&lt;LI&gt;save config&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;SPAN&gt;ssh to the Check point device from a host on the same subnet&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;-bash: /bin/fwaccel_autocomplete.sh: No such file or directory&lt;P&gt;&lt;SPAN&gt;Quick solution:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;create the user with a uid 0 (zero) (UID must be either 0 or between 103 and 65533)&lt;P&gt;Tracing the issue :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;~/.bashrc &amp;gt; /etc/bashrc&lt;/LI&gt;&lt;LI&gt;/etc/bashrc line 150 tries to source $MDS_FWDIR/bin/fwaccel_autocomplete.sh&lt;/LI&gt;&lt;LI&gt;There is no file fwaccel_autocomplete.sh&lt;UL&gt;&lt;LI&gt;find / -name fwaccel_autocomplete.sh 2&amp;gt;/dev/null&lt;/LI&gt;&lt;LI&gt;$MDS_FWDIR variable is not set when user id is 103&lt;/LI&gt;&lt;LI&gt;$MDS_FWDIR variable is /opt/CPsuite-R81.20/fw1 when user id is 0 (zero)&lt;P&gt;Better solution for R&amp;amp;D to consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;don't "source" a non-existent file&lt;/LI&gt;&lt;LI&gt;set the $MDS_FWDIR variable for ssh users uid &amp;gt;= 103&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Fri, 09 Aug 2024 19:24:57 GMT</pubDate>
    <dc:creator>nadmin</dc:creator>
    <dc:date>2024-08-09T19:24:57Z</dc:date>
    <item>
      <title>-bash: /bin/fwaccel_autocomplete.sh: No such file or directory</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/bash-bin-fwaccel-autocomplete-sh-No-such-file-or-directory/m-p/223181#M42792</link>
      <description>&lt;P&gt;&lt;SPAN&gt;-bash: /bin/fwaccel_autocomplete.sh: No such file or directory&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This occurs when ssh is used before the FTW wizard creates the $MDS_FWDIR environment variables and installs&amp;nbsp;&lt;SPAN&gt;fwaccel_autocomplete.sh&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is how to reproduce:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create new Check Point gateway or SMS from ISO (do not run FTW)&lt;/LI&gt;&lt;LI&gt;Log in from the Console&lt;/LI&gt;&lt;LI&gt;set hostname CPTEMPLATE&lt;/LI&gt;&lt;LI&gt;set interface eth0 ipv4-address [your_ip] mask-length [your_mask-length]&lt;/LI&gt;&lt;LI&gt;save config&lt;/LI&gt;&lt;LI&gt;Set up ansible user&lt;UL&gt;&lt;LI&gt;add user ansible uid 103 homedir /home/ansible&lt;/LI&gt;&lt;LI&gt;set user ansible password&lt;/LI&gt;&lt;LI&gt;add rba user ansible roles adminRole&lt;/LI&gt;&lt;LI&gt;set user ansible shell /bin/bash&lt;/LI&gt;&lt;LI&gt;save config&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;SPAN&gt;ssh to the Check point device from a host on the same subnet&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;-bash: /bin/fwaccel_autocomplete.sh: No such file or directory&lt;P&gt;&lt;SPAN&gt;Quick solution:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;create the user with a uid 0 (zero) (UID must be either 0 or between 103 and 65533)&lt;P&gt;Tracing the issue :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;~/.bashrc &amp;gt; /etc/bashrc&lt;/LI&gt;&lt;LI&gt;/etc/bashrc line 150 tries to source $MDS_FWDIR/bin/fwaccel_autocomplete.sh&lt;/LI&gt;&lt;LI&gt;There is no file fwaccel_autocomplete.sh&lt;UL&gt;&lt;LI&gt;find / -name fwaccel_autocomplete.sh 2&amp;gt;/dev/null&lt;/LI&gt;&lt;LI&gt;$MDS_FWDIR variable is not set when user id is 103&lt;/LI&gt;&lt;LI&gt;$MDS_FWDIR variable is /opt/CPsuite-R81.20/fw1 when user id is 0 (zero)&lt;P&gt;Better solution for R&amp;amp;D to consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;don't "source" a non-existent file&lt;/LI&gt;&lt;LI&gt;set the $MDS_FWDIR variable for ssh users uid &amp;gt;= 103&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 09 Aug 2024 19:24:57 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/bash-bin-fwaccel-autocomplete-sh-No-such-file-or-directory/m-p/223181#M42792</guid>
      <dc:creator>nadmin</dc:creator>
      <dc:date>2024-08-09T19:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: -bash: /bin/fwaccel_autocomplete.sh: No such file or directory</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/bash-bin-fwaccel-autocomplete-sh-No-such-file-or-directory/m-p/223196#M42793</link>
      <description>&lt;P&gt;What is it that you are trying to achieve?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Aug 2024 09:57:43 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/bash-bin-fwaccel-autocomplete-sh-No-such-file-or-directory/m-p/223196#M42793</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2024-08-10T09:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: -bash: /bin/fwaccel_autocomplete.sh: No such file or directory</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/bash-bin-fwaccel-autocomplete-sh-No-such-file-or-directory/m-p/223238#M42805</link>
      <description>&lt;P&gt;Previous to my post, the only post related to "&lt;SPAN&gt;fwaccel_autocomplete.sh" was the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.checkpoint.com/t5/Security-Gateways/Permission-Denied-whilst-entering-cplic-or-any-cp-command/m-p/189517" target="_blank"&gt;https://community.checkpoint.com/t5/Security-Gateways/Permission-Denied-whilst-entering-cplic-or-any-cp-command/m-p/189517&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This post outlines the issue, and why it's not an account problem as was suggested, but a limitation of Gaia R81.20.&lt;/P&gt;&lt;P&gt;The username "ansible" points to one use of ssh to a new Check Point device prior to FTW: automating the FTW and initial configuration.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Aug 2024 00:27:01 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/bash-bin-fwaccel-autocomplete-sh-No-such-file-or-directory/m-p/223238#M42805</guid>
      <dc:creator>nadmin</dc:creator>
      <dc:date>2024-08-11T00:27:01Z</dc:date>
    </item>
  </channel>
</rss>

