how to install Linux Malware Detect 1.3.7

Asked by Rups

when i try to instal LMD 1.3.7 i keep getting this :
******************************************************************************************
rups@rups-RD400-5-CD26A2:~/maldetect-1.3.7$ ./install.sh
mkdir: cannot create directory `/usr/local/maldetect': Permission denied
chmod: cannot access `/usr/local/maldetect': No such file or directory
cp: target `/usr/local/maldetect' is not a directory
chmod: cannot access `/usr/local/maldetect/maldet': No such file or directory
ln: cannot remove `/usr/local/sbin/maldet': Permission denied
ln: cannot remove `/usr/local/sbin/lmd': Permission denied
cp: cannot stat `/usr/local/maldetect/inotify/libinotifytools.so.0': No such file or directory
cp: cannot remove `/etc/cron.daily/maldet': Permission denied
chmod: changing permissions of `/etc/cron.daily/maldet': Operation not permitted
touch: cannot touch `/usr/local/maldetect/event_log': No such file or directory
./install.sh: line 45: /usr/local/maldetect/maldet: No such file or directory
./install.sh: line 46: /usr/local/maldetect/maldet: No such file or directory
Linux Malware Detect v1.3.7
            (C) 2002-2010, R-fx Networks <email address hidden>
            (C) 2010, Ryan MacDonald <email address hidden>
inotifywait (C) 2007, Rohan McGovern <email address hidden>
This program may be freely redistributed under the terms of the GNU GPL

installation completed to /usr/local/maldetect
config file: /usr/local/maldetect/conf.maldet
exec file: /usr/local/maldetect/maldet
exec link: /usr/local/sbin/maldet
exec link: /usr/local/sbin/lmd
cron.daily: /etc/cron.daily/maldet

./install.sh: line 66: /usr/local/maldetect/maldet: No such file or directory
rups@rups-RD400-5-CD26A2:~/maldetect-1.3.7$ maldet
maldet: command not found
rups@rups-RD400-5-CD26A2:~/maldetect-1.3.7$ ls -l /usr/local/
total 32
drwxr-xr-x 2 root root 4096 2010-10-07 21:26 bin
drwxr-xr-x 2 root root 4096 2010-10-07 21:26 etc
drwxr-xr-x 2 root root 4096 2010-10-07 21:26 games
drwxr-xr-x 2 root root 4096 2010-10-07 21:26 include
drwxr-xr-x 4 root root 4096 2011-01-15 01:01 lib
lrwxrwxrwx 1 root root 9 2011-01-11 03:38 man -> share/man
drwxr-xr-x 2 root root 4096 2011-01-25 18:11 sbin
drwxr-xr-x 8 root root 4096 2010-10-07 21:42 share
drwxr-xr-x 2 root root 4096 2010-10-07 21:26 src
rups@rups-RD400-5-CD26A2:~/maldetect-1.3.7$ ls -l /usr
total 148
drwxr-xr-x 2 root root 36864 2011-01-21 22:46 bin
drwxr-xr-x 2 root root 4096 2011-01-15 00:52 games
drwxr-xr-x 39 root root 4096 2011-01-13 18:26 include
drwxr-xr-x 210 root root 65536 2011-01-25 18:05 lib
drwxr-xr-x 3 root root 4096 2011-01-21 22:45 lib64
drwxr-xr-x 10 root root 4096 2011-01-25 18:17 local
drwxr-xr-x 2 root root 12288 2011-01-21 22:45 sbin
drwxr-xr-x 309 root root 12288 2011-01-21 22:45 share
drwxrwsr-x 5 root src 4096 2011-01-21 22:46 src

if i use sudo it installs but when i type maldet command shell shows command not found.
how to install this??
i'm using ubuntu 10.10

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu software-center Edit question
Assignee:
No assignee Edit question
Solved by:
Rups
Solved:
Last query:
Last reply:
Revision history for this message
Rups (rupsd) said :
#1

Or if any better alternative is there please suggest that also but i'm more biased towards using Cli

Revision history for this message
Sam_ (and-sam) said :
#2

http://www.rfxn.com/better-late-than-never-linux-malware-detect-1-3/
says:
... details are on the project page and the README file should fill you in on anything you need to know, otherwise you can post a comment on the bottom of the project page and I will assist where possible.

Another howto is there.
http://www.webhostingtalk.com/wiki/Linux_Malware_Detect#Installation_.26_Configuration

Alternative?
rkhunter, chkrootkit, bastille, aide

http://www.gentoo.org/doc/en/security/security-handbook.xml
http://www.cyberciti.biz/tips/record-monitor-linux-filesystem-changes-auditing.html

Revision history for this message
Rups (rupsd) said :
#3

rups@rups-RD400-5-CD26A2:~$ wget http://www.rfxn.com/downloads/maldetect-current.tar.gz
--2011-01-26 10:42:28-- http://www.rfxn.com/downloads/maldetect-current.tar.gz
Resolving www.rfxn.com... 208.76.83.136
Connecting to www.rfxn.com|208.76.83.136|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 347791 (340K) [application/x-gzip]
Saving to: `maldetect-current.tar.gz'

100%[========================================================================================>] 347,791 6.59K/s in 68s

2011-01-26 10:43:43 (4.99 KB/s) - `maldetect-current.tar.gz' saved [347791/347791]

rups@rups-RD400-5-CD26A2:~$ tar xfz maldetect-current.tar.gz
rups@rups-RD400-5-CD26A2:~$ cd maldetect-*
rups@rups-RD400-5-CD26A2:~/maldetect-1.3.7$ ./install.sh
mkdir: cannot create directory `/usr/local/maldetect': Permission denied
chmod: cannot access `/usr/local/maldetect': No such file or directory
cp: target `/usr/local/maldetect' is not a directory
chmod: cannot access `/usr/local/maldetect/maldet': No such file or directory
ln: cannot remove `/usr/local/sbin/maldet': Permission denied
ln: cannot remove `/usr/local/sbin/lmd': Permission denied
cp: cannot stat `/usr/local/maldetect/inotify/libinotifytools.so.0': No such file or directory
cp: cannot remove `/etc/cron.daily/maldet': Permission denied
chmod: changing permissions of `/etc/cron.daily/maldet': Operation not permitted
touch: cannot touch `/usr/local/maldetect/event_log': No such file or directory
./install.sh: line 45: /usr/local/maldetect/maldet: No such file or directory
./install.sh: line 46: /usr/local/maldetect/maldet: No such file or directory
Linux Malware Detect v1.3.7
            (C) 2002-2010, R-fx Networks <email address hidden>
            (C) 2010, Ryan MacDonald <email address hidden>
inotifywait (C) 2007, Rohan McGovern <email address hidden>
This program may be freely redistributed under the terms of the GNU GPL

installation completed to /usr/local/maldetect
config file: /usr/local/maldetect/conf.maldet
exec file: /usr/local/maldetect/maldet
exec link: /usr/local/sbin/maldet
exec link: /usr/local/sbin/lmd
cron.daily: /etc/cron.daily/maldet

./install.sh: line 66: /usr/local/maldetect/maldet: No such file or directory

Revision history for this message
Rups (rupsd) said :
#4

problem solved.i was running as root

Revision history for this message
Rups (rupsd) said :
#5

i mean not running as root