linux 恶意软件检测,Linux恶意软件检测共享主机

我正在尝试在共享主机上安装优秀的http://www.rfxn.com/projects/linux-malware-detect/。

我已将激励更改为我的本地目录,但它在创建符号链接时出错,只读取/ usr / lib /,最后找不到/usr/local/maldetect/conf.maldet。

谢谢你的帮助。我认为解决这个问题对许多人来说非常有用。

这是错误:

./install.sh

ln: creating symbolic link `/usr/local/sbin/maldet' to `/home6/anton/mal/maldet': No such file or directory

ln: creating symbolic link `/usr/local/sbin/lmd' to `/home6/anton/mal/maldet': No such file or directory

cp: cannot create regular file `/usr/lib/libinotifytools.so.0': Read-only file system

Linux Malware Detect v1.3.9

(C) 2002-2011, R-fx Networks

(C) 2011, Ryan MacDonald

inotifywait (C) 2007, Rohan McGovern

This program may be freely redistributed under the terms of the GNU GPL v2

maldet(15528): {glob} /usr/local/maldetect/conf.maldet not found, aborting.

installation completed to /home6/anton/mal

config file: /home6/anton/mal/conf.maldet

exec file: /home6/anton/mal/maldet

exec link: /usr/local/sbin/maldet

exec link: /usr/local/sbin/lmd

cron.daily: /etc/cron.daily/maldet

.ca.def: line 1: /usr/local/maldetect/conf.maldet: No such file or directory

imported config options from /home6/anton/mal.last/conf.maldet

maldet(15578): {glob} /usr/local/maldetect/conf.maldet not found, aborting.

这是安装bash:

#!/bin/bash

#

##

# Linux Malware Detect v1.3.9

# (C) 2002-2011, R-fx Networks

# (C) 2011, Ryan MacDonald

# inotifywait (C) 2007, Rohan McGovern

# This program may be freely redistributed under the terms of the GNU GPL v2

##

#

inspath=/home6/anton/mal

logf=$inspath/event_log

cnftemp=.ca.def

if [ ! -d "$inspath" ] && [ -d "files" ]; then

mkdir -p $inspath

chmod 750 $inspath

cp -pR files/* $inspath

chmod 750 $inspath/maldet

ln -fs $inspath/maldet /usr/local/sbin/maldet

ln -fs $inspath/maldet /usr/local/sbin/lmd

cp $inspath/inotify/libinotifytools.so.0 /usr/lib/

else

$inspath/maldet -k >> /dev/null 2>&1

mv $inspath $inspath.bk$$

rm -f $inspath.last

ln -fs $inspath.bk$$ $inspath.last

mkdir -p $inspath

chmod 750 $inspath

cp -pR files/* $inspath

chmod 750 $inspath/maldet

ln -fs $inspath/maldet /usr/local/sbin/maldet

ln -fs $inspath/maldet /usr/local/sbin/lmd

cp $inspath/inotify/libinotifytools.so.0 /usr/lib/

cp -f $inspath.bk$$/sess/* $inspath/sess/ >> /dev/null 2>&1

cp -f $inspath.bk$$/tmp/* $inspath/tmp/ >> /dev/null 2>&1

cp -f $inspath.bk$$/quarantine/* $inspath/quarantine/ >> /dev/null 2>&1

fi

if [ -d "/etc/cron.daily" ]; then

cp -f cron.daily /etc/cron.daily/maldet

chmod 755 /etc/cron.daily/maldet

fi

touch $logf

$inspath/maldet --alert-daily

$inspath/maldet --alert-weekly

echo "Linux Malware Detect v1.3.9"

echo " (C) 2002-2011, R-fx Networks "

echo " (C) 2011, Ryan MacDonald "

echo "inotifywait (C) 2007, Rohan McGovern "

echo "This program may be freely redistributed under the terms of the GNU GPL"

echo ""

echo "installation completed to $inspath"

echo "config file: $inspath/conf.maldet"

echo "exec file: $inspath/maldet"

echo "exec link: /usr/local/sbin/maldet"

echo "exec link: /usr/local/sbin/lmd"

echo "cron.daily: /etc/cron.daily/maldet"

echo ""

if [ -f "$cnftemp" ] && [ -f "$inspath.bk$$/conf.maldet" ]; then

. files/conf.maldet

. $inspath.bk$$/conf.maldet

. $cnftemp

echo "imported config options from $inspath.last/conf.maldet"

fi

$inspath/maldet --update 1

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值