Remove /snap/bin from PATH
This page applies to the deprecated ISO appliance. For the supported deployment method, see Legacy ISO installation.
Vulnerability scans can require that the /snap/bin directory isn't in the PATH environment variable of the node. Complete the following steps on each node.
-
Remove
/snap/binfrom thePATHvalue in/etc/environment. The result resembles the following:PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" -
In
/etc/profile.d/apps-bin-path.sh, comment out the lines that add the snap directory to the path:# Expand $PATH to include the directory where snappy applications go.# snap_bin_path="/snap/bin"# if [ -n "${PATH##*${snap_bin_path}}" ] && [ -n "${PATH##*${snap_bin_path}:*}" ]; then# export PATH=$PATH:${snap_bin_path}# fi -
Open a new SSH session and check the path:
echo $PATHThe output doesn't contain
/snap/bin.