On Wed, 2018-05-16 at 12:54 -0500, David C. Rankin wrote:
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.
Hi, I've been quite busy elsewhere and haven't had time to work on this till this evening. I tried to modify /etc/profile several times in various ways and couldn't get the PATH changed to include /usr/local/bin I couldn't figure out how to use shadow. I modified the etc/bash.bashrc as David suggested, this evening by placing the [[ $PATH =~ /usr/local/bin ]] || export PATH="${PATH}:/usr/local/bin" on the last line of the bash.bashrc script as below: if test "$restricted" = true -a -z "$PROFILEREAD" ; then PATH=/usr/lib/restricted/bin export PATH fi [[ $PATH =~ /usr/local/bin ]] || export PATH="${PATH}:/usr/local/bin" # # End of /etc/bash.bashrc # That got the rkhunter program working in konsole after I logged back out and in again as my user, and then opened konsole and switched to root. I used zypper dup my 42.3 on a different computer to upgradet to 15.0, and found that rkhunter also doesn't work on it now after the upgrade. So I will use this same procedure to get it working, since it seems that /usr/local/bin was removed in 15.0 PATH by the operating system programmers. Thanks for the help. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org