LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-18-2004, 08:04 AM   #1
x5452
Member
 
Registered: Mar 2004
Posts: 30

Rep: Reputation: 15
Detect file changes?


like this:
cd /
ls -R -la > snapshot.log

-R means resursive
-l means long list
-a means list all files include hidden files like .bashrc etc.

Then do another and compare what are the changes.

Any better idea?
 
Old 04-18-2004, 08:07 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
There are applictions like "fam" written specifically to do this.
 
Old 04-18-2004, 08:44 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Depends on what changes you're looking for. If you're only interested in files being changed then the minimalist approach would be using md5sum recursive (or md5deep), some watch app like bubblegum, or if you need more details Aide, Samhain or tripwire. If it's content changes you need you could look at rcs or cvs. I haven't seen any FAM service clients for these tasks?
 
Old 04-18-2004, 11:19 AM   #4
x5452
Member
 
Registered: Mar 2004
Posts: 30

Original Poster
Rep: Reputation: 15
is sgi_fam = fam services in ntsysv?

i notice sgi_fam service is automatically started when system boot.

To, unSpawn,
my usage is not about version control.

I want to know what files are changed(add/removed) and when happened

My ISP need my root password to do some investigation on my web server.
And they are going to give the root access to 3rd party.

I want to make a snapshot of the current file system so that I could know what change did they really made.

I've read some information about fam.
http://techpubs.sgi.com/library/tpl/...LE85266-PARENT

However, it seems need me to write a C program by myself...
any easier or handy method to "enquiry" the changes?
 
Old 04-18-2004, 11:40 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
I want to make a snapshot of the current file system so that I could know what change did they really made.
I'd suggest loading a filesystem integrity scanner (Aide, Samhain or tripwire) and make a "baseline" copy before you hand over control of the box. If your package manager can verify integrity, you could exclude the system binaries and libraries. Make a backup of the configuration files.


My ISP need my root password to do some investigation on my web server.
And they are going to give the root access to 3rd party.

Just being curious, why?
 
Old 04-18-2004, 11:44 AM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
My ISP need my root password to do some investigation on my web server.
And they are going to give the root access to 3rd party.


I'm quite curious myself. I would be weary in giving my root password to a server of mine to anyone I don't know. And then they share that information out to others. I myself would question this to them and ask them why they need it? If they are going to fix something, why not login see what the problem is and tell you how to change it, etc.
 
Old 04-18-2004, 11:50 AM   #7
x5452
Member
 
Registered: Mar 2004
Posts: 30

Original Poster
Rep: Reputation: 15
Thanks for the info. I will find more about aide, samhain.

Why they need the root access?
Because I am configuring my webserver.
The site control panel I am using is Plesk.

I create a subdomain.
But I got 403 forbidden error when I access the html files (like index.html) on that subdomain.

My ISP tried to investigate for me and found:
/home/httpd/vhosts/domain.com/statistics/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

They told me to turn of Frontpage extension.
I do and reboot my server but still 403 error.

I even tried to delete the whole domain and create a clean one.
Still 403.

My ISP told me that may be the problem of Plesk. (Sw-Soft is the company writing Plesk.)
And they want my root access for the investigation.

That's why...
 
Old 04-18-2004, 11:52 AM   #8
x5452
Member
 
Registered: Mar 2004
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by trickykid
My ISP need my root password to do some investigation on my web server.
And they are going to give the root access to 3rd party.


I'm quite curious myself. I would be weary in giving my root password to a server of mine to anyone I don't know. And then they share that information out to others. I myself would question this to them and ask them why they need it? If they are going to fix something, why not login see what the problem is and tell you how to change it, etc.
Oh yeah. I have the same idea too.
But they are kinda not so helpful .
They would rather configure it for me and bill me when they want (the ISP).
 
Old 04-18-2004, 01:07 PM   #9
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Why not just ask your questions on this site?
 
Old 04-18-2004, 01:45 PM   #10
x5452
Member
 
Registered: Mar 2004
Posts: 30

Original Poster
Rep: Reputation: 15
I've tried to that.
But the forum on that site is really quite respondness.

I tried to search the forum and find there are many issues have 0 reply.
Most of the reply there are from end-users.

My ISP is kinda the reseller and I *guess* they have priority of support.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
The CDROM and FLOPPY can't detect file Mathsniper Linux - Hardware 2 04-15-2005 11:13 PM
How to detect GNOME, KDE or * and start File Browser? neo_in_matrix Programming 2 04-09-2005 03:50 PM
ffmpeg fails to detect missing end of avi-file batchman Linux - Software 1 08-21-2004 02:44 PM
How to play a media file/ video file/mp3 file recorded in harddisk/cd-rom arindam Linux - Newbie 2 09-05-2003 10:31 AM
RH 7.1 can't detect my modem ... in dmesg log file. t0dd Linux - Software 1 03-04-2002 08:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:10 PM.

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