On 05/14/2018 01:02 PM, Mark Misulich wrote:
I then used dolphin to find every file for rkhunter, and removed
On 05/14/2018 01:35 PM, David C. Rankin wrote: them.
then I tried to install rkhunter-1.4.6 using ./installer.sh -- install. It installs perfectly, but when I try to run it, konsole can't find it.
How do I fix this?
Mark
If konsole can't find it, it is not in your PATH. Your default path with not include /sbin;/usr/sbin so if it gets put there -- there is your answer.
Howerver, root does have /sbin in it's path -- have you tried to su to root and then run it?
It probably does, but I always "rpm -e command-not-found" to get rid of the 3-line mess. Looking at the rkhunter source "install.sh" as well as the opensuse rpm "rkhunter-1.4.2-11.1.x86_64.rpm", both install to /usr/bin (or /usr/local/bin), so there should be no need for any PATH modification. My only other thought is somehow the permissions on the executable got messed up so you no longer have the execute bit set. Please provide an 'ls -al' listing of /usr/bin/rkh* and /usr/lib64/rkhunter/scripts (adjust the paths as required if you installed them to another directory, e.g. /usr/local/...) -- David C. Rankin, J.D.,P.E. Hi, I thought about this overnight and came to the conclusion that upgrading rkhunter from a different directory than the original installation wouldn't have any bearing on whether the program would start from command line. It always started from any point the root system if I typed the command rkhunter. Now it won't. I wondered if the tarball that I downloaded was corrupted, so I removed rkhunter, and cleared the root system of every rkhunter file. Then I downloaded the tarball from sourceforge again, extracted it, and installed it. Here is the result linux-2b8:/home/lx1/Downloads/rkhunter-1.4.6 # ./installer.sh --install Checking system for: Rootkit Hunter installer files: found A web file download command: wget found Starting installation: Checking installation directory "/usr/local": it exists and is writable. Checking installation directories: Directory /usr/local/share/doc/rkhunter-1.4.6: creating: OK Directory /usr/local/share/man/man8: exists and is writable. Directory /etc: exists and is writable. Directory /usr/local/bin: exists and is writable. Directory /usr/local/lib64: exists and is writable. Directory /var/lib: exists and is writable. Directory /usr/local/lib64/rkhunter/scripts: creating: OK Directory /var/lib/rkhunter/db: creating: OK Directory /var/lib/rkhunter/tmp: creating: OK Directory /var/lib/rkhunter/db/i18n: creating: OK Directory /var/lib/rkhunter/db/signatures: creating: OK Installing check_modules.pl: OK Installing filehashsha.pl: OK Installing stat.pl: OK Installing readlink.sh: OK Installing backdoorports.dat: OK Installing mirrors.dat: OK Installing programs_bad.dat: OK Installing suspscan.dat: OK Installing rkhunter.8: OK Installing ACKNOWLEDGMENTS: OK Installing CHANGELOG: OK Installing FAQ: OK Installing LICENSE: OK Installing README: OK Installing language support files: OK Installing ClamAV signatures: OK Installing rkhunter: OK Installing rkhunter.conf: OK Installation complete linux-2b8:/home/lx1/Downloads/rkhunter-1.4.6 # rkhunter --propupd If 'rkhunter' is not a typo you can use command-not-found to lookup the package that contains it, like this: cnf rkhunter Same as before I reworked everything. Here are the results of the list results you requested: linux-2b8:/home/lx1/Downloads/rkhunter-1.4.6 # ls -al /usr/bin/rkh* ls: cannot access '/usr/bin/rkh*': No such file or directory linux-2b8:/home/lx1/Downloads/rkhunter-1.4.6 # ls -al /usr/lib64/rkhunter/scripts ls: cannot access '/usr/lib64/rkhunter/scripts': No such file or directory I didn't modify any of the rkhunter installation scripts to change installation destinations. Every installation or action with rkhunter is always done in root in konsole. This seems that it is a software issue, and even though it seems to be installing correctly, it isn't doing so. Mark -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org