TimeJunky
31.05.07, 11:29
hallo,
ich habe chkrootkit unter debian 4 installiert.
Das Prog meldet:
The following suspicious files and directories were found:
/lib/init/rw/.mdadm
/lib/init/rw/.ramfs
/lib/init/rw/.mdadm
Um diese Meldung zu umgehen, habe ich versucht die Config nach der Anleitung
http://stereo.lu/chkrootkit.diff.html
zu modifizieren.
- files=`${find} ${DIR} -name ".[A-Za-z]*" -o -name "...*" -o -name ".. *"`
+ files=`${find} ${DIR} \( -name ".[A-Za-z]*" -o -name "...*" -o -name ".. *" \) -and -not -wholename /lib/init/rw/.ramfs`
dirs=`${find} ${DIR} -type d -name ".*"`
if [ "${files}" = "" -a "${dirs}" = "" ]
then
Leider erscheinen hiernach diverse Fehler. wie kann ich sie beheben bitte?
/etc/chkrootkit.conf: line 7: -name: command not found
/etc/chkrootkit.conf: line 7: -: command not found
-name ist doch bestandteil der optionen des find-commandos, trotzdem das gemecker. wer kann mir bitte sagen, was hier nicht stimmt?
ich habe chkrootkit unter debian 4 installiert.
Das Prog meldet:
The following suspicious files and directories were found:
/lib/init/rw/.mdadm
/lib/init/rw/.ramfs
/lib/init/rw/.mdadm
Um diese Meldung zu umgehen, habe ich versucht die Config nach der Anleitung
http://stereo.lu/chkrootkit.diff.html
zu modifizieren.
- files=`${find} ${DIR} -name ".[A-Za-z]*" -o -name "...*" -o -name ".. *"`
+ files=`${find} ${DIR} \( -name ".[A-Za-z]*" -o -name "...*" -o -name ".. *" \) -and -not -wholename /lib/init/rw/.ramfs`
dirs=`${find} ${DIR} -type d -name ".*"`
if [ "${files}" = "" -a "${dirs}" = "" ]
then
Leider erscheinen hiernach diverse Fehler. wie kann ich sie beheben bitte?
/etc/chkrootkit.conf: line 7: -name: command not found
/etc/chkrootkit.conf: line 7: -: command not found
-name ist doch bestandteil der optionen des find-commandos, trotzdem das gemecker. wer kann mir bitte sagen, was hier nicht stimmt?