LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-28-2008, 09:59 PM   #1
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Rep: Reputation: 55
Does anyone know of a user level based file integrity checker?


Does anyone know of a user level based file integrity checker?

(One I can install if I don't have root access, to check the files in my user directory and subdirectories thereof).
 
Old 05-28-2008, 10:15 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Do you mean 'integrity' as in like for rootkits, viruses, and that sort of thing?

Far as I know, you could build & use 'RKhunter' or 'chkrootkit' without root installation privileges, but hopefully (probably ) someone will correct me quickly if I am mistaken. You would need to alter their default configuration and/or search paths, but I think that can be done.
As for viruses, I won't attempt to suggest anything, because I don't use anything.

If it is something totally NOT along these lines that you are seeking, please clarify.

Sasha

PS - if this IS the stuff you seek, then you might suggest these tools to your server admin, for root installation, though I would like to think that any respectable server admin/host has tools of this sort in place already... Then again, who knows :/

Last edited by GrapefruiTgirl; 05-28-2008 at 10:17 PM.
 
Old 05-29-2008, 12:06 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,362

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Re GrapefruiTgirl's tip, see also Tripwire.

If you just mean accidental corruption (transmission/bad disk write) etc, md5 checksum works for most people eg Distros usually offer this so you can check their downloads.
 
Old 05-29-2008, 08:16 AM   #4
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by chrism01 View Post
Re GrapefruiTgirl's tip, see also Tripwire.

If you just mean accidental corruption (transmission/bad disk write) etc, md5 checksum works for most people eg Distros usually offer this so you can check their downloads.
Will tripwire work at the user level? And can their be multiple copies of it installed?
 
Old 05-29-2008, 08:46 AM   #5
kummiliim
Member
 
Registered: Mar 2007
Location: Tallinn, Estonia
Distribution: Slackware 12.0
Posts: 276

Rep: Reputation: 30
Use AIDE which is a replacement for tripwire. I can't see why you would need separate copies but yeah, sure, why not.

Edit: And yes, of course it's in userspace.
 
Old 05-29-2008, 08:53 AM   #6
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by abefroman
Does anyone know of a user level based file integrity checker?
Right -- there is nothing to install. Using md5sum + sha1sum should verify a file's integrity. You can use both as a regular user.

Contrived example (on a FreeBSD box, with slightly different command implementations):
Code:
> find sandbox | xargs sha1 
SHA1 (sandbox) = 34ab74e88e611127ade407ca3706d7dae5cfa266
SHA1 (sandbox/blah1) = 55ca6286e3e4f4fba5d0448333fa99fc5a404a73
SHA1 (sandbox/blah2) = 6132b58967cf1ebc05062492c17145e5ee9f82a8

> find sandbox | xargs md5
MD5 (sandbox) = a4ef5fb92afba44310df7cd9bb8309ad
MD5 (sandbox/blah1) = 764efa883dda1e11db47671c4a3bbd9e
MD5 (sandbox/blah2) = 90580754da3ed1b3e4be38c9b277bc9b
(On FreeBSD there is also the useful mtree program, but I'd guess that will not apply here.)

You could put together a little script that will capture this information, and another script to compare it with a previous run. Or you could search the net for a solution that someone else already created.

Last edited by anomie; 05-29-2008 at 09:02 AM. Reason: vocabulary.
 
  


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
replace a file in user level munna_dude Programming 1 09-02-2007 06:01 AM
replace a file in user level munna_dude Programming 6 09-01-2007 03:54 PM
integrity checker for Debian sarge 3.1 linian Debian 1 07-26-2006 03:53 AM
text based ink level? jon_k Linux - Software 1 11-20-2004 06:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:21 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