John Horne wrote:
On Mon, 2007-02-12 at 10:32 -0800, russbucket wrote:I'm trying to run the hashupd.sh script on SUSE 10.2. with the following command as su root: rkhunter --update; hashupd.sh. The update runs but thehashupd gives me an error it cannot find command. I copied the scriptto /usr/share/rkhunter/scripts but I still get the error. The command wasfound in an email from this list.Where should the script be placed? I gave it the same permissions as the otherscripts in the above directory. Error message: bash: hashupd.sh: command not found.Hello, You either need to either: 1) put the hashupd.sh script in to a directory which is in your PATH. Run 'echo $PATH' (as root) to see which directories are in your path. Then run hashupd.sh as before. 2) change to the directory containing the script and then use './hashupd.sh' - note the './' at the beginning.
Yes, to be able to run a program it needs to be in your path or you have to supply an absolute or relative path yourself.
Relative path examples: # cd /usr/share/rkhunter/scripts # ./hashupd.sh # cd /usr/share/rkhunter # scripts/hashupd.sh Etcetera (. means 'the current working directory'). The other option is to use an absolute path: # /usr/share/rkhunter/scripts/hashupd.shIf the program is in a directory in your path you don't need to supply an absolute or relative path yourself.
Nils Breunese.
PGP.sig
Description: Dit deel van het bericht is digitaal ondertekend
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Rkhunter-users mailing list Rkhunter-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rkhunter-users