On 05/16/2018 08:19 AM, Mark Misulich wrote:
linux-2b8:/usr/local/bin # [[ $PATH =~ /usr/local/bin ]] || export "{PATH}:/usr/local/bin" bash: export: `{PATH}:/usr/local/bin': not a valid identifier
Yes, sorry, my bad, it should be: [[ $PATH =~ /usr/local/bin ]] || export PATH="${PATH}:/usr/local/bin" (it was late....) Also, as Patrick noted, the /usr/local/bin path component is automatically provided if you install the 'shadow' rpm. (which I've never seen not pulled in by some dependency I have) To get rkhunter running, just paste the above command at the command line, since we know you don't have it in your path, you can simply omit the test for it and do: $ export PATH="${PATH}:/usr/local/bin" You should install the shadow package, e.g. as root # zypper in shadow If you don't want to install it for some reason, then add the full: [[ $PATH =~ /usr/local/bin ]] || export PATH="${PATH}:/usr/local/bin" to your .bashrc (so that it checks whether /usr/local/bin is already part of your path before it adds it again -- so you don't end up with multiple additions) -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org