Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Chkroot output
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
sulek
n00b
n00b


Joined: 04 Jun 2005
Posts: 55

PostPosted: Mon Jun 06, 2005 6:38 pm    Post subject: Chkroot output Reply with quote

Hello guys,
I've just installed chkrootkit and discovered that fortunately my system is not compromised;)
Anyway, gentoo chkrootkit install script adds entry to cron.weekly. My question is where output messages of chkrootkit is stored. I hope not only in /var/log/message;)

Thanks is advance!
Back to top
View user's profile Send private message
giel
n00b
n00b


Joined: 12 May 2005
Posts: 6

PostPosted: Mon Jun 06, 2005 8:31 pm    Post subject: Reply with quote

if you cat the chkrootkit script in your cron.weekly, you should see output similar to:
Code:

/usr/sbin/chkrootkit -q > /var/log/chkrootkit.log


By default, the log should be what is indicated above: /var/log/chkrootkit.log

If you want to change it, just modify what is to the right of the ">"

ex
Code:

/usr/sbin/chkrootkit -q > /home/user/chkrootkit.log


Not sure exactly how you would output to two different files (short of running chkrootkit twice) if that is what you're asking.

Grats on no rootkits ; )
Back to top
View user's profile Send private message
sulek
n00b
n00b


Joined: 04 Jun 2005
Posts: 55

PostPosted: Mon Jun 06, 2005 8:57 pm    Post subject: Reply with quote

Actually I made it different. I put following script to crontab.daily:

/usr/sbin/chkrootkit -q|mail -s "Daily crontab" user@domain.com

Unfortunatelly one server don't have mail server and actually I don't want it to have due to security reasons.
I don't know how to tackle it :(
Back to top
View user's profile Send private message
giel
n00b
n00b


Joined: 12 May 2005
Posts: 6

PostPosted: Mon Jun 06, 2005 11:54 pm    Post subject: Reply with quote

Your solution appears to work (tested on my system using sendmail and shooting off the message to my gmail account), however, if your machine doesn't have sendmail (or something similiar) sending via email won't really be an option.

I'm not sure what kind of security you're looking for. If you're just wanting to not use sendmail perhaps you can script something to output to a log file, use wput to upload the file to another machine? If you don't want the machine to keep the file, just remove the file via your script.

plausible?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum