* Patrick Shanahan <paka@opensuse.org> [05-16-18 10:10]:
* Mark Misulich <munguanaweza@gmail.com> [05-16-18 09:22]: [...]
here are results from your instructions:
linux-2b8:/usr/local/bin # echo $PATH /sbin:/bin:/usr/sbin:/usr/bin
linux-2b8:/usr/local/bin # [[ $PATH =~ /usr/local/bin ]] || export "{PATH}:/usr/local/bin" bash: export: `{PATH}:/usr/local/bin': not a valid identifier
linux-2b8:/usr/local/bin # ls -al /usr/local/bin/rkhunter -rwx------ 1 root root 575851 May 15 09:00 /usr/local/bin/rkhunter
linux-2b8:/usr/local/bin # chmod 0755 /usr/local/bin/rkhunter linux-2b8:/usr/local/bin # rkhunter --propupdate If 'rkhunter' is not a typo you can use command-not-found to lookup the package that contains it, like this: cnf rkhunter
what does this show: grep "/usr/local/bin" /etc/login.defs
do: export PATH=/usr/local/bin:$PATH
sudo updatedb
which rkhunter
also be aware that the above method of changing the $PATH is only for the particular bash/sh/... session which is current. once you close it the path change is gone. to make the path permanent for current <user> add the export statement to ~/.profile or to make the path change permanent for the system, add the export statement to /ect/profile.local (for openSUSE). see https://www.quora.com/What-is-profile-file-in-Linux -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Registered Linux User #207535 @ http://linuxcounter.net Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org