|
Home > Archive > Unix Shell > August 2007 > Finding out if a script has been modified
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Finding out if a script has been modified
|
|
|
| Hello *,
I would like to find out if anyone has modified a script on one of the
Linux servers i administer. Is there a command that creates a sort of
hash, a sort of CRC number or equivalent of a shellscript?
(I know that these questions should be properly addressed with a
version control tool, but this isn't feasable in my situation.)
TIA,
Helma.
| |
| jellybean stonerfish 2007-08-28, 1:24 pm |
| On Tue, 28 Aug 2007 06:28:55 -0700, Helma wrote:
> Hello *,
>
> I would like to find out if anyone has modified a script on one of the
> Linux servers i administer. Is there a command that creates a sort of
> hash, a sort of CRC number or equivalent of a shellscript?
>
> (I know that these questions should be properly addressed with a
> version control tool, but this isn't feasable in my situation.)
>
> TIA,
> Helma.
md5sum shellscript
stonerfish
| |
| Scott McMillan 2007-08-28, 1:24 pm |
| On Tue, 28 Aug 2007 06:28:55 -0700, Helma <helma.vinke@hotmail.com>
wrote:
>Hello *,
>
>I would like to find out if anyone has modified a script on one of the
>Linux servers i administer. Is there a command that creates a sort of
>hash, a sort of CRC number or equivalent of a shellscript?
>
>(I know that these questions should be properly addressed with a
>version control tool, but this isn't feasable in my situation.)
>
>TIA,
>Helma.
I think sum is what you are looking for - man sum. Although I don't
know how you would use this after the fact, if you don't have original
scripts/sums to compare against...
Scott McMillan
| |
|
| thanks for the answers - i'll see if i can use this.
how this helps me? Uhm... perhaps as a warranty seal ;-)
H.
| |
| Maxwell Lol 2007-08-28, 7:21 pm |
| Scott McMillan <smcmillan@twmi.rr.com> writes:
[vbcol=seagreen]
> I think sum is what you are looking for - man sum.
sum can be faked. Use md5sum. That uses a cryptograpic hash mechanism.
EXTREMLY hard to fake md5sum.
|
|
|
|
|