debsum and actual md5

Posted by Radium on Server Fault See other posts from Server Fault or by Radium
Published on 2012-06-12T02:41:18Z Indexed on 2012/06/12 4:42 UTC
Read the original article Hit count: 514

Filed under:

I have discovered that debsum maybe does not work as i thought. I ran

debsum -as

And actually i did not see sshd binary in that list. However md5 of the /usr/sbin/sshd file and the numbers given in /var/lib/dpkg/info/openssh-server.md5sums are different.

cat /var/lib/dpkg/info/openssh-server.md5sums 
968ce0ccc85f3dc64375c689fa165359  usr/lib/openssh/sftp-server
ba856dce069acadff587ca95e8e63551  usr/sbin/sshd
a8f85459802674a416b903c8be7774d6  usr/share/doc/openssh-client/examples/sshd_config
8c5592e0d522fa0f8f55f3c104479ef5  usr/share/lintian/overrides/openssh-server
24e6a2d6f56d5fd52651db030a4124bb  usr/share/man/man5/sshd_config.5.gz
65dbe6d2862940ad7cd945fadaabc2f8  usr/share/man/man8/sftp-server.8.gz
63398534a80e75262e56ac821e2bb3f3  usr/share/man/man8/sshd.8.gz

md5sum /usr/sbin/sshd
72a54d63b9f9edbdc0cb0de4715683d0

What is wrong?

© Server Fault or respective owner

Related posts about md5