Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
nadmin
Explorer

-bash: /bin/fwaccel_autocomplete.sh: No such file or directory

-bash: /bin/fwaccel_autocomplete.sh: No such file or directory

This occurs when ssh is used before the FTW wizard creates the $MDS_FWDIR environment variables and installs fwaccel_autocomplete.sh

Here is how to reproduce:

  • Create new Check Point gateway or SMS from ISO (do not run FTW)
  • Log in from the Console
  • set hostname CPTEMPLATE
  • set interface eth0 ipv4-address [your_ip] mask-length [your_mask-length]
  • save config
  • Set up ansible user
    • add user ansible uid 103 homedir /home/ansible
    • set user ansible password
    • add rba user ansible roles adminRole
    • set user ansible shell /bin/bash
    • save config
    • ssh to the Check point device from a host on the same subnet
      • -bash: /bin/fwaccel_autocomplete.sh: No such file or directory

        Quick solution:

        • create the user with a uid 0 (zero) (UID must be either 0 or between 103 and 65533)

          Tracing the issue :

          • ~/.bashrc > /etc/bashrc
          • /etc/bashrc line 150 tries to source $MDS_FWDIR/bin/fwaccel_autocomplete.sh
          • There is no file fwaccel_autocomplete.sh
            • find / -name fwaccel_autocomplete.sh 2>/dev/null
            • $MDS_FWDIR variable is not set when user id is 103
            • $MDS_FWDIR variable is /opt/CPsuite-R81.20/fw1 when user id is 0 (zero)

              Better solution for R&D to consider:

              • don't "source" a non-existent file
              • set the $MDS_FWDIR variable for ssh users uid >= 103

                 

0 Kudos
2 Replies
_Val_
Admin
Admin

What is it that you are trying to achieve? 

0 Kudos
nadmin
Explorer

Previous to my post, the only post related to "fwaccel_autocomplete.sh" was the following:

https://community.checkpoint.com/t5/Security-Gateways/Permission-Denied-whilst-entering-cplic-or-any...

This post outlines the issue, and why it's not an account problem as was suggested, but a limitation of Gaia R81.20.

The username "ansible" points to one use of ssh to a new Check Point device prior to FTW: automating the FTW and initial configuration.

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events