LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 01-04-2009, 05:14 AM   #1
martijnburger
LQ Newbie
 
Registered: Dec 2008
Posts: 20

Rep: Reputation: 0
fcheck on linux 10, what happens at 03:00 in the morning?


Hi everyone,

I'm currently installing a Fedora 10 webserver. It's currently connected through a router which has no ports activate in NAT/PAT. My only port allowed by IP tables is 22 (ssh). I'm pretty sure I secured ssh in a good way (no rootlogin, only protocol 2, etc.

I've installed fcheck last night do do a quarterly check of my systemdirectories. I checked it last night before I left it and the fcheck log was clean. Since 03:00 this morging (CET) I'm getting warnings from fcheck for almost every application in /bin and /sbin. The folling is typically happening:
* inodechange
* timechange to 03:00
* filesize grows by around 2 kb
* CRC change

For example:

WARNING: [localhost] /sbin/reboot
[Inodes: 2982696 - 2982714, Sizes: 47664 - 50284, Times: Jan 03 18:52 2009 - Jan 04 03:03 2009, CRCs: 02dec3da0f16de4c9a7d72dbae9606a2 - 0e0ab2a6ab8df617a294313362b1d05c]

Has anyone got an explanation what happend?

Regards,

Martijn
 
Old 01-04-2009, 05:21 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
Check cron - updatedb probably.
 
Old 01-04-2009, 05:39 AM   #3
martijnburger
LQ Newbie
 
Registered: Dec 2008
Posts: 20

Original Poster
Rep: Reputation: 0
Sorry,

don't think it's updatedb. I haven't even got updatedb installed. This is the relevant part of my /var/log/cron:

Jan 4 02:45:01 www CROND[6588]: (root) CMD (nice /usr/local/bin/fcheck_script > /dev/null)
Jan 4 03:00:01 www CROND[14939]: (root) CMD (nice /usr/local/bin/fcheck_script > /dev/null)
Jan 4 03:01:01 www CROND[22002]: (root) CMD (run-parts /etc/cron.hourly)
Jan 4 03:15:01 www CROND[23293]: (root) CMD (nice /usr/local/bin/fcheck_script > /dev/null)

Any other logs I can check?


Regards,

Martijn.
 
Old 01-04-2009, 06:12 AM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Check whether you've got prelink running via cron.
 
Old 01-04-2009, 02:42 PM   #5
martijnburger
LQ Newbie
 
Registered: Dec 2008
Posts: 20

Original Poster
Rep: Reputation: 0
The only thing I have running via cron is fcheck:

[root@www ~]# crontab -l
*/15 * * * * nice /usr/local/bin/fcheck_script > /dev/null
[root@www ~]#
 
Old 01-04-2009, 04:12 PM   #6
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
What's the output of:
Code:
ls -l /etc/cron.*
 
Old 01-06-2009, 01:45 AM   #7
martijnburger
LQ Newbie
 
Registered: Dec 2008
Posts: 20

Original Poster
Rep: Reputation: 0
[root@www ~]# ls -l /etc/cron.*
-rw-r--r-- 1 root root 0 2008-12-23 10:04 /etc/cron.deny

/etc/cron.d:
total 0

/etc/cron.daily:
total 16
-rwxr-xr-x 1 root root 180 2003-07-09 21:36 logrotate
-rwxr-xr-x 1 root root 669 2008-09-16 14:05 makewhatis.cron
-rwxr-xr-x 1 root root 2181 2006-06-21 12:07 prelink
-rwxr-xr-x 1 root root 296 2008-12-01 13:10 rpm

/etc/cron.hourly:
total 0

/etc/cron.monthly:
total 0

/etc/cron.weekly:
total 4
-rwxr-xr-x 1 root root 663 2008-09-16 14:05 makewhatis.cron


That looks promissing. I have to read up on how cron works, I guess
 
Old 01-06-2009, 09:27 AM   #8
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Well, you've got a prelink set there as a daily cronjob.

So maybe prevent it from executing to see if it changes your situation:
Code:
chmod 644 /etc/cron.daily/prelink
My guess is that if you check your system-wide crontab you'll see that the execution time for the daily jobs will match the changes you've been seeing. I don't know about Fedora, but on Ubuntu the file is /etc/crontab.

Last edited by win32sux; 01-06-2009 at 09:31 AM.
 
Old 01-06-2009, 12:45 PM   #9
martijnburger
LQ Newbie
 
Registered: Dec 2008
Posts: 20

Original Poster
Rep: Reputation: 0
Okay. Found it out, it is prelink. Hate it when an OS installs stuff for you without asking. Thanks for the help, guys!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Good morning everybody chssastry LinuxQuestions.org Member Intro 1 09-29-2008 03:04 AM
Morning chrisdudeperson LinuxQuestions.org Member Intro 1 05-03-2008 06:28 AM
Morning all! Lordandmaker LinuxQuestions.org Member Intro 2 09-28-2005 01:40 PM
How do I Reboot into Linux at night and back to WinXP in the morning? kayhan Linux - General 5 09-16-2004 04:45 PM
Linux, Like a warm cup of coco on a clear sunday morning bkeating Linux - General 4 05-24-2002 08:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration