Sponsored Content
Special Forums Hardware Filesystems, Disks and Memory Directory is Same but Checksum is different Post 302104994 by JustinPyfrom on Tuesday 30th of January 2007 06:20:21 AM
Old 01-30-2007
Cheers

Cheers for the reply. What I am doing is running 'sum' on software on a unix machine and placing the checksums into a file.

Running a 'diff' command on the generated file and a 'gold' file

If these are different, then delete all the software and reinstall.

If I then run check sums again, it finds differences again (even though the install generated the 'gold' file).

One thing i have discovered is:
These are on empty directories. Is it because of the metadata that directories hold?

thanks,
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

directory checksum error

Display warnning:directory checksum error in the end of Decompress the bag (0 Replies)
Discussion started by: renrongwen
0 Replies

2. SCO

checksum

Does anyone know the answer to this? When I run "sum -r" on a file that I've down loaded from the sco website, the 1st set of numbers differs from the checksum on the download page but the 2nd set matches. If I try to install the patch, I get errors. Anyone has an answer? (3 Replies)
Discussion started by: jn5519
3 Replies

3. UNIX for Dummies Questions & Answers

directory checksum error

Hi, I have a tar file with naed ass bcs.tar.gz downlaoded to my work station and It contains all the .c files and .o which i needed. when i am trying to unzip this one i am facing directory checksum error. What does it mean.How to resolve this. I tried with tar -xf and tar -tvf... (2 Replies)
Discussion started by: jagan_kalluri
2 Replies

4. Shell Programming and Scripting

"directory checksum error" when attempting to install tcl

OS: HP-UX Programs I want to install: expect and tcl I'm lost. I bought the book. I began reading the book. I want to install expect. I've been able to download the .z, and extract it successfully. But, of course, it apparently needs tcl and possibly tk also, and ... I... (0 Replies)
Discussion started by: instant000
0 Replies

5. Solaris

checksum

Anyone can tell me the different between "cksum" and "sum" command on Solaris? I read the man pages but still not get it. And how to display the md5 checksum for a file. Thanks, (1 Reply)
Discussion started by: redstone
1 Replies

6. Shell Programming and Scripting

Extracting the checksum

I wanted a script that can give the checksum of a particular zipped file. Can somebody help me in writing a shell script in getting the checksum of a particular tar file. (1 Reply)
Discussion started by: vkca
1 Replies

7. Shell Programming and Scripting

Checksum+SFTP

Hi ALL, I use solaris OS and SFTP to get/put files from remote server.I use the below command , sftp user@host<<EOF cd "dir" get --checksum "filename" EOF I am getting a strange error as " get --checksum INVALID paramter". It has been working succesfully since last 3 years but all of a... (1 Reply)
Discussion started by: mohanpadamata
1 Replies

8. Solaris

md5 checksum what does it do

Hello good people, I came across md5 checksum. Can anyone please explain to me what it does and if possible an example of how to use it? Thank you very much (1 Reply)
Discussion started by: cjashu
1 Replies

9. IP Networking

Wireshark UDP checksum bad checksum

Hello I am communicating with two devices using my computer over UDP protocol. The application is running fine. When I monitored the UDP traffic using Wireshark software, I found that there were too many Checksum errors. Please find attached the png file showing this error. I am about to... (0 Replies)
Discussion started by: AustinCann
0 Replies

10. AIX

Gunzip tar A directory checksum error on media

Hi, what is the directory checksum error ? # sed 's/^M$//' test4_bkp_19Jan13.tgz | tar -tvf - tar: 0511-169 A directory checksum error on media; -265745505 not equal to 76225. # mv test4_bkp_19Jan13.tgz test4.gz # gunzip < /ebs2/test4.gz | tar -xvf - tar: 0511-169 A directory checksum... (4 Replies)
Discussion started by: filosophizer
4 Replies
DEBSUMS(1)							   User Commands							DEBSUMS(1)

NAME
debsums - check the MD5 sums of installed Debian packages SYNOPSIS
debsums [options] [package|deb] ... DESCRIPTION
Verify installed Debian package files against MD5 checksum lists from /var/lib/dpkg/info/*.md5sums. debsums can generate checksum lists from deb archives for packages that don't include one. OPTIONS
-a, --all Also check configuration files (normally excluded). -e, --config Only check configuration files. -c, --changed Report changed file list to stdout (implies -s). -l, --list-missing List packages (or debs) which don't have an MD5 sums file. -s, --silent Only report errors. -m, --md5sums=file Read list of deb checksums from file. -r, --root=dir Root directory to check (default /). -d, --admindir=dir dpkg admin directory (default /var/lib/dpkg). -p, --deb-path=dir[:dir...] Directories in which to look for debs derived from the package name (default is the current directory). A useful value is /var/cache/apt/archives when using apt-get autoclean or not clearing the cache at all. The command: apt-get --reinstall -d install `debsums -l` may be used to populate the cache with any debs not already in the cache. Note: This doesn't work for CD-ROM and other local sources as packages are not copied to /var/cache. Simple file sources (all debs in a single directory) should be added to the -p list. -g, --generate=[missing|all][,keep[,nocheck]] Generate MD5 sums from deb contents. If the argument is a package name rather than a deb archive, the program will look for a deb named package_version_arch.deb in the directories given by the -p option. missing Generate MD5 sums from the deb for packages which don't provide one. all Ignore the on disk sums and use the one supplied in the deb, or generated from it if none exists. keep Write the extracted/generated sums to /var/lib/dpkg/info/package.md5sums. nocheck Implies keep; the extracted/generated sums are not checked against the installed package. For backward compatibility, the short option -g is equivalent to --generate=missing. --no-locale-purge Report missing locale files even if localepurge is configured. --no-prelink Report changed ELF files even if prelink is configured. --ignore-permissions Treat permission errors as warnings when running as non-root. --help --version Print help and version information. EXIT STATUS
debsums returns 0 on success, or a combination* of the following values on error: 1 A specified package or archive name was not installed, invalid or the installed version did not match the given archive. 2 Changed or missing package files, or checksum mismatch on an archive. 255 Invalid option. *If both of the first two conditions are true, the exit status will be 3. EXAMPLES
debsums foo bar Check the sums for installed packages foo and bar. debsums foo.deb bar.deb As above, using checksums from (or generated from) the archives. debsums -l List installed packages with no checksums. debsums -ca List changed package files from all installed packages with checksums. debsums -ce List changed configuration files. debsums -cagp /var/cache/apt/archives As above, using sums from cached debs where available. apt-get install --reinstall $(dpkg -S $(debsums -c) | cut -d : -f 1 | sort -u) Reinstalls packages with changed files. RESULTS
OK The file's md5sum is good. FAILED The file's md5sum does not match. REPLACED The file has been replaced by a file from a different package. NOTES
The default installation of debsums package sets the debconf boolean value debsums/apt-autogen to be "true". This will create /etc/apt/apt.conf.d/90debsums as: DPkg::Post-Invoke { "debsums --generate=nocheck -sp /var/cache/apt/archives"; }; by the postinst script (>=2.0.7). Every APT controlled package installation processes will execute this code fragment to generate the missing md5sums files from the binary packages. In order to create md5sums files for the already installed packages, you must run debsums_init once after the installation of debsums pack- age. SEE ALSO
md5sum(1), debsums_init(8) ENVIRONMENT
TMPDIR Directory for extracting information and contents from package archives (/tmp by default). CAVEATS
While in general the program may be run as a normal user, some packages contain files which are not globally readable so cannot be checked. Privileges are of course also required when generating sums with the keep option set. Files which have been replaced by another package may be erroneously reported as changed. debsums is intended primarily as a way of determining what installed files have been locally modified by the administrator or damaged by media errors and is of limited use as a security tool. If you are looking for an integrity checker that can run from safe media, do integrity checks on checksum databases and can be easily con- figured to run periodically to warn the admin of changes see other tools such as: aide, integrit, samhain, or tripwire. AUTHOR
Written by Brendan O'Dea <bod@debian.org>. Based on a program by Christoph Lameter <clameter@debian.org> and Petr Cech <cech@debian.org>. COPYRIGHT
Copyright (C) 2002 Brendan O'Dea <bod@debian.org> This is free software, licensed under the terms of the GNU General Public License. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Debian 2007-11-29 DEBSUMS(1)
All times are GMT -4. The time now is 09:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy