LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-23-2003, 07:18 AM   #1
intruptz
LQ Newbie
 
Registered: Aug 2003
Posts: 17

Rep: Reputation: 0
SAMBA bad gpg


gpg won't open the PGP sig for the samba source file.

[root@bowser al]# gpg --verify samba-2.2.8a.tar.asc
gpg: no signed data
gpg: can't hash datafile: file open error

If i rename the the file to samba-2.2.8a.sig i get-

[root@bowser al]# mv Samba_CA.crt.asc Samba_CA.sig
[root@bowser al]# gpg Samba_CA.sig
Detached signature.
Please enter name of data file: samba-latest.tar
gpg: Signature made Tue 06 May 2003 16:55:54 BST using DSA key ID 2F87AF6F
gpg: BAD signature from "Samba Distribution Verification Key <samba-bugs@samba.org>"

Am I doing something wrong here? I've tried 3 diff downloads.cheers,

interuptz
 
Old 09-16-2015, 10:51 AM   #2
harrykar
LQ Newbie
 
Registered: Feb 2009
Posts: 2

Rep: Reputation: 1
Quote:
Originally Posted by intruptz View Post
gpg won't open the PGP sig for the samba source file.

[root@bowser al]# gpg --verify samba-2.2.8a.tar.asc
gpg: no signed data
gpg: can't hash datafile: file open error

If i rename the the file to samba-2.2.8a.sig i get-

[root@bowser al]# mv Samba_CA.crt.asc Samba_CA.sig
[root@bowser al]# gpg Samba_CA.sig
Detached signature.
Please enter name of data file: samba-latest.tar
gpg: Signature made Tue 06 May 2003 16:55:54 BST using DSA key ID 2F87AF6F
gpg: BAD signature from "Samba Distribution Verification Key <samba-bugs@samba.org>"

Am I doing something wrong here? I've tried 3 diff downloads.cheers,

interuptz
Ok it's a bit late answer to a so old post LOL but i encounter the same BAD signature output too today (i go for intuition without read around) so...
probably the next guy in trouble have to find directly the answer here

the whole 3 step procedure is described in samba's FAQ under How do I verify a tarball with the GnuPG signature? section

After downloaded and imported samba's public GPG Key (trough a key manager like seahorse or from CLI)
Code:
 gpg --import samba-pubkey.asc
i got that BAD signature output :

Code:
$ gpg --verify samba-4.3.0.tar.asc samba-4.3.0.tar.gz 
gpg: Signature made Tue 08 Sep 2015 04:54:18 PM EEST using DSA key ID 6568B7EA
gpg: BAD signature from "Samba Distribution Verification Key <samba-bugs@samba.org>"
The reason was i haven't decompress first the tar (the source *.tar.gz file not the signature *.tar.asc ) as is reported in samba's FAQ Please notice, the signature is checked against the uncompressed tarball.
So decompress the tar trough
Code:
$ gunzip samba-4.3.0.tar.gz
now you have the source tarball uncompressed (*.tar) --in place of the original *.tar.gz file-- and can proceed the verify trough
Code:
$ gpg --verify samba-4.3.0.tar.asc samba-4.3.0.tar
gpg: Signature made Tue 08 Sep 2015 04:54:18 PM EEST using DSA key ID 6568B7EA
gpg: Good signature from "Samba Distribution Verification Key <samba-bugs@samba.org>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 52FB C0B8 6D95 4B08 4332  4CDC 6F33 915B 6568 B7EA
Don't bother about the last 3 lines (Warning: etc) it's not so grave goes away after you sign the samba's public key(after importing it) with your key



Cheers
HArry G.t. KAr

Last edited by harrykar; 09-16-2015 at 11:54 AM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mount: wrong fs type, bad option, bad superblock on /dev/hdc3 Lordandmaker Linux - Hardware 15 06-05-2011 08:55 AM
Samba-Client gone bad. madmax04 Linux - Networking 3 03-13-2005 10:04 AM
mount: wrong fs type, bad option, bad superblock on /dev/cdrom, Adil_uk Linux - Hardware 9 02-16-2005 05:50 PM
mount: wrong fs type, bad option, bad superblock on /dev/sdb1 pmoreira Linux - Hardware 5 02-26-2004 10:31 AM
Samba './configure' goes bad gvaught Linux - Networking 6 12-09-2003 10:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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