-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