The tag has no usage guidance.

learn more… | top users | synonyms (2)

1
vote
1answer
25 views

Debian package's files authentication

I know that dpkg keeps md5sums of configuration files for each package installed, so it can tell whether they are changed or not when upgrading. Does it keep md5sums for regular (non-configuration) ...
6
votes
1answer
276 views

Use md5sum to verify file in a script

This question is probably quite easy but I don't know how to accomplish this. I want to verify a file using md5sum -c file.md5. I can do that by hand, but I don't know how to check the validity in a ...
1
vote
1answer
19 views

Openssl generate invalid websocket security code

I need to write websocket server on GAWK. And server must handle user's Sec-WebSocket-Key by following algorithm (from RFC): Concat key with 258EAFA5-E914-47DA-95CA-C5AB0DC85B11 Take sha-1 in binary ...
1
vote
1answer
28 views

Command to verify CRC (CRC32) hashes recursively

With the commands md5sum, sha1sum, sha256sum I can take a text file having an hash and a path per line and verify the entire list of files in a single command, like sha1sum -c mydir.txt. (Said text ...
13
votes
2answers
826 views

Why do these duplicated SD cards have different sha1sums for their content?

I have a bunch of Class 10 UHS-1 SDHC SD cards from different manufacturers. They are all partitioned as follows $ sudo fdisk -l /dev/sdj Disk /dev/sdj: 14.9 GiB, 15931539456 bytes, 31116288 sectors ...
1
vote
0answers
16 views

Benefit of using multiple checksums for a group in AIDE

What are the benefits to having all md checksum functions specified for a group when running AIDE? For example, what is the difference between defining the first line and the second line with less md ...
1
vote
1answer
65 views

Executing a command in remote machine and redirecting output to a local file

I am uploading a file via sftp and just performing the safety test if the file is completely uploaded to the remote server. I am taking md5 hash of both(file in local and file in remote server) and ...
4
votes
1answer
47 views

Best way to programatically detect the current host (by hardware features)

I have a hard drive with a Linux installation on it that I like to boot from different physical computers. My question is whether it's possible to programmatically detect which computer the drive is ...
0
votes
1answer
61 views

Using hashed password for adduser function in Linux

Sorry, I´m novice in Linux and I am looking for information, how to create new user account in Debian with pre-defined encrypted password. I have a function in bash, that if new user´s id´s are not ...
0
votes
0answers
13 views

Hash Sum Mismatch LMDE2

I have just installed LMDE2 Cinnamon and I am having problems to install two updates, blueberry and cinnamon-translations. Both in the Update Manager and using apt-get -f install says that ...
1
vote
1answer
105 views

md5sum for every file (with ll)

I want output like this: name size and hash: myfile.txt 222M 24f4ce42e0bc39ddf7b7e879a mynewfile.txt 353M a274613df45a94c3c67fe646 For name and size only I have ll -h | awk '{print ...
3
votes
1answer
38 views

chpasswd and openssl

I'm trying to pass an MD5 password to chpasswd but it doesn't seem to work. echo username:$(openssl passwd -1 -salt salt password) Then I try to pass this to chpasswd to change the password echo ...
2
votes
1answer
422 views

How to fix error message Hash sum mismatch error

I recently upgraded my Linux Mint to Rafaela 17.2 and while I was tweaking a little bit the interface and installing some themes and icons, I found myself with this annoying error message: W: ...
1
vote
1answer
20 views

creating and using hashsum in .iso image

I recently came across sha1sum -c . As the manpage states - -c, --check read SHA1 sums from the FILEs and check them Now I know how to generate and use sha1sum from an .iso . For ...
0
votes
1answer
23 views

Script add's md5sum to duplicate filenames but still get error notifications when executed

So by using some info from other threads on this site I have managed to get a script to copy files to another directory, then add the md5sum into the duplicate file names. However, I'm not fully ...
1
vote
2answers
145 views

HDD image file checksum does not match with device checksum

I have a 660297728 byte HDD image with MD5 hash f5a9d398e974617108d26c1654fe7bcb: root@T42# ls -l image -rw-rw-r-- 1 noc noc 660297728 Sep 29 19:00 image root@T42# md5sum image ...
0
votes
1answer
118 views

Want a sha256 ssl cert,but i get sha1,why?

I use this procedure openssl req -newkey rsa:2048 -sha256 -subj "/C=IT/ST=Lazio/L=Roma/O=Blu/CN=server.server.server" -keyout ssl.key -out ssl.req -passout file:"/root/pass" ;done #sign certificate ...
0
votes
1answer
268 views

BASH: Getting the md5 hash of file on remote server

Is there a way I could get the md5 hash of a file on a remote server? I'm looking for a command like md5 hlin117@server:/path/to/file.txt
3
votes
3answers
423 views

How to rename multiple files to their contents' MD5 sum?

I would like to rename some files to their contents' MD5 sum; for example, if file foo is empty, it should be renamed to d41d8cd98f00b204e9800998ecf8427e. Does it have to be script or can I use ...
2
votes
3answers
55 views

find and md5sum not yielding any output (find -o limit?)

I ran into a situation that I don't really understand. I have a bunch of backup files in a recursive structure of which I want to calculate the md5. When I add some additional file extensions the ...
1
vote
3answers
83 views

Get checksum of directory on bash

I was wondering: Is it possible to create a checksum of a directory (using something like md5sum) Is it possible to recursively create checksum for each file inside the dir (and then print it out)? ...
1
vote
2answers
103 views

MySQLdump via crontab - Pass --password=/hashed/password/file so I can use via crontab w/o using plain text password

So I'm setting up a WordPress backup guide/making a backup schedule for myself for real. I want to do MySQL dumps daily, but the command either requires -p then user input or ...
0
votes
1answer
60 views

Replace the first word of each line with its MD5

I have file with two space separated word in each line. I am looking for shell scrip in Unix to replace the first word of each row with its md5 hash representation. I have tried to adjust what is ...
1
vote
1answer
137 views

What hash algorithms can I use in preseed's passwd/user-password-crypted entry?

When it comes to passwd/user-password-crypted statement in a preseed file, most examples use an MD5 hash. Example: # Normal user's password, either in clear text #d-i passwd/user-password password ...
1
vote
3answers
67 views

Merge several files on the basis of the md5sum

I have a file data.txt, which was divided into fragments. I need to properly combine fragments of files so that the original file was created data.txt. I do not know what procedure does this, because ...
1
vote
2answers
131 views

Does the hash of a file change if the filename changes?

Does the hash of a file change if the filename or path or timestamp or permissions change? $ echo some contents > testfile $ shasum testfile 3a2be7b07a1a19072bf54c95a8c4a3fe0cdb35d4 testfile
1
vote
2answers
105 views

Difficulty using 'md5sum -c'

I'm having some difficulty using md5sum to verify some copied files. I have two directories: dir1 and dir2. In dir1 there are five files: file1, file2, file3, file4 and file5. dir2 is empty. If I ...
9
votes
5answers
459 views

find | xargs shasum creates checksum of checksum file itself (prematurely) and fails when checking

My problem (in a script with #!/bin/sh) is as follows: I try to checksum all files in a directory for archival purposes. The checksum (in my case sha1) file with all filenames should reside in the ...
2
votes
1answer
47 views

Clustering identical files ignoring spaces & linebreaks

Consider a folder with many XML files (10K small text files). Some XML files are identical, some are different. I would like to find out what files are identical (ignoring whitespaces, tabs and ...
2
votes
2answers
127 views

How to use md5sum for checksum with an md5 file which doesn't contain the filename

I have 2 files test.txt and test.txt.md5. I would like to verify the checksum of test.txt. The gnu tool md5sum requires an md5 file with the following format "[md5-hash][space][space][filename]" ...
2
votes
4answers
373 views

Change only one bit in a file

I have to test a hash function and I want to change only a single bit of a specific file. I tried with the dd command. That works, but I can only change a whole byte and not just a bit. sudo dd ...
0
votes
1answer
29 views

how to get the md5sum from a bootable CD/DVD?

AccuHash is a program that can get an md5sum from CD/DVD and without creating an ISO from, but it is a program only running in Windows. I looked around the web for how to do it and there is no ...
3
votes
2answers
1k views

How to remove duplicate files using bash

I have a folder with duplicate (by md5sum (md5 on a Mac)) files, and I want to have a cron job scheduled to remove any found. However, I'm stuck on how to do this. What I have so far: md5 -r * | ...
3
votes
2answers
108 views

Help checking the integrity of TAR files for backup

I want make a backup of my Home directory and I've read a good method is to use the tar tool, and I think it suits me well since all I need to do is create a .tar of every folder in the Home directory ...
1
vote
1answer
412 views

smd5 - generate by unix tool or perl

I have problem on Unix, have to create a lot of passwords in smd5 but don't know how to generate smd5 passwords using some unix tool or perl in a form: {smd5}DoZgZ.OE$vSg4ZH7Bpy0BCdXNzBj001 I have ...
0
votes
1answer
21 views

Incorrect Md5sum for Opera

I checked the md5sum for the .deb I downloaded from http://www.opera.com/download/guide/?os=linux-i386, and I got 272929c189608dd22a9f61fb0000a365. This number is not listed on ...
0
votes
1answer
37 views

rpm -V inner workings

I have an rpm file that is used to install a package I made the package consists of java classes and shell scripts to run these java classes, in a .run file. So the rpm essentially only contains a ...
-1
votes
2answers
760 views

How to convert SHA to plain text? [closed]

I have found out, how I can convert plain text into an SHA (http://hash.online-convert.com/sha512-generator), but how can I convert a SHA key to plain text?
-1
votes
1answer
89 views

Hash different, is it safe?

The first time I downloaded Tails image which is with different sha256sum than the webpage giving, so I downloaded it once again and this time it is correct. Then I unpakeged all the files inside the ...
1
vote
1answer
41 views

sha1sum reporting different hash value relative to openssl

Why the difference in the following? $ echo -n "foo" | openssl dgst -sha1 -hmac "key" (stdin)= 9fc254126c2b1b7f106abacae0cb77e73411fad7 $ echo -n "foo" | sha1sum ...
6
votes
1answer
279 views

How to make a list generated by md5deep in alphabetical order of relative paths?

If I want make a md5sum list recursively, then I would use md5deep, but it starts to pop up some problems such as it won't generate the md5sum file in alphabetical order. For example, $ cd ...
0
votes
2answers
244 views

Read file and find all occurances and generate hash for the content in between the occurance

I have a file like this : 1 Record|1111|ABC 2 text in between for record 1 3 text in between for record 1 4 Record|2222|XYZ 5 text in between for record 2 6 Record|3333|XYZ 7 text ...
2
votes
2answers
898 views

Different MD5Sum for the same file in same directory

I find it odd as I managed to get different md5sum using the exact same file from the same directory. The output as below: [root@testlabs Config]# ls Backup_Files hostname1-config.uac ...
0
votes
1answer
156 views

How do I add the hash of a file to file itself

I am trying to follow procedures at How To Create Your Own Odin Flashable TAR or TAR.MD5 And the command md5sum -t your_odin_package.tar >> your_odin_package.tar does not work for me. That ...
17
votes
6answers
3k views

Simultaneously calculate multiple digests (md5, sha256)?

Under the assumption that disk I/O and free RAM is a bottleneck (while CPU time is not the limitation), does a tool exist that can calculate multiple message digests at once? I am particularly ...
6
votes
2answers
6k views

/etc/shadow : how to generate $6$ 's encrypted password?

In /etc/shadow file there are encrypted password. Encrypted password is no longer crypt(3) or md5 "type 1" format. (according to this previous answer) Now I have a ...
2
votes
3answers
1k views

How to find md5sum of files on remote machines by doing ssh?

I am running my below shell script on machineC which gets the md5sum of my files in my PRIMARY directory in machineC itself. #!/bin/bash export PRIMARY=/data01/primary for entry in "$PRIMARY"/* do ...
1
vote
1answer
336 views

Permission denied while getting the md5sum of a file using shell script?

I am running my below shell script which gets the md5sum of a files in my PRIMARY directory #!/bin/bash export PRIMARY=/data01/primary for entry in "$PRIMARY"/* do local_md5sum=/usr/bin/md5sum ...
0
votes
1answer
99 views

Improve execution time for recursive md5sum check?

This recursive md5sum check for 40000 items of 11.8 GB takes 2 minutes: ret=$(find "${target}"/ -name ".md5sum" -size +0 | while read aFile; do cd "${aFile%/*}"; md5sum -c ".md5sum"; done | grep -v ...
6
votes
2answers
988 views

check md5sum from pipe

I am confused how md5sum --check is supposed to work: $ man md5sum -c, --check read MD5 sums from the FILEs and check them I have a file, I can pipe it to md5sum: $ cat file | md5sum ...