LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-26-2006, 02:45 PM   #16
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Original Poster
Rep: Reputation: 63

Quote:
Originally Posted by Alien Bob
An example of a file with a bad signature (and the gpg output)?

Eric
Hi Eric,

Because I cannot tell which file it's stating these about, this is all I can paste.

Hopefully this helps.

Quote:
gpg: Can't check signature: public key not found
gpg: no signed data
gpg: can't hash datafile: file open error
gpg: Signature made Thu 28 Jul 2005 03:35:11 PM EDT using DSA key ID 4B96A8C5
gpg: Can't check signature: public key not found
gpg: Signature made Wed 27 Oct 2004 12:53:02 PM EDT using DSA key ID 08C975E5
gpg: Can't check signature: public key not found
gpg: Signature made Sun 02 Jan 2005 06:32:06 PM EST using DSA key ID 74C732D1
gpg: Can't check signature: public key not found
gpg: Signature made Fri 02 Sep 2005 04:59:06 PM EDT using RSA key ID 26BB437D
gpg: Can't check signature: public key not found
gpg: Signature made Sat 19 Mar 2005 04:32:19 PM EST using DSA key ID 3C0E751C
gpg: Can't check signature: public key not found
gpg: Signature made Thu 01 Sep 2005 05:15:38 AM EDT using DSA key ID 86FF9C48
gpg: Can't check signature: public key not found
gpg: Signature made Sat 04 Sep 2004 03:07:26 PM EDT using DSA key ID A511976A
gpg: Can't check signature: public key not found
gpg: Signature made Mon 17 Nov 2003 11:52:30 AM EST using DSA key ID 49843813
gpg: Can't check signature: public key not found
gpg: Signature made Mon 05 Sep 2005 04:54:45 AM EDT using DSA key ID 2BB2D54A
gpg: Can't check signature: public key not found
gpg: Signature made Sun 14 Aug 2005 09:03:31 PM EDT using DSA key ID 2BB2D54A
gpg: Can't check signature: public key not found
gpg: no signed data
gpg: can't hash datafile: file open error
gpg: Signature made Tue 11 Oct 2005 07:57:55 AM EDT using DSA key ID 2BB2D54A
gpg: Can't check signature: public key not found
gpg: Signature made Wed 13 Sep 2006 07:16:15 PM EDT using DSA key ID 1AF32821
gpg: Can't check signature: public key not found
gpg: Signature made Thu 27 Jul 2006 02:35:51 PM EDT using RSA key ID 10FDE075
gpg: Can't check signature: public key not found
gpg: Signature made Wed 19 Apr 2006 02:35:03 PM EDT using DSA key ID 1AF32821
gpg: Can't check signature: public key not found
gpg: Signature made Thu 02 Feb 2006 06:01:22 PM EST using DSA key ID 2BB2D54A
gpg: Can't check signature: public key not found
gpg: Signature made Tue 03 Jan 2006 11:22:50 AM EST using DSA key ID 2BB2D54A
gpg: Can't check signature: public key not found
gpg: Signature made Wed 13 Sep 2006 07:11:45 PM EDT using DSA key ID 1AF32821
gpg: Can't check signature: public key not found
gpg: Signature made Wed 01 Feb 2006 06:34:31 AM EST using DSA key ID 86FF9C48
gpg: Can't check signature: public key not found
gpg: Signature made Sun 22 Jan 2006 07:38:16 AM EST using DSA key ID 052E7D95
gpg: Can't check signature: public key not found

gpg: Signature made Tue 19 Jul 2005 03:11:23 PM EDT using DSA key ID 6D1ECD07
gpg: Can't check signature: public key not found
gpg: Signature made Sat 30 Jul 2005 03:22:36 PM EDT using DSA key ID 6D1ECD07
gpg: Can't check signature: public key not found
gpg: Signature made Tue 19 Jul 2005 02:58:54 PM EDT using DSA key ID 6D1ECD07
gpg: Can't check signature: public key not found
gpg: Signature made Tue 13 Sep 2005 03:32:14 PM EDT using DSA key ID 40102233
 
Old 09-26-2006, 03:16 PM   #17
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Well obviously you're checking a directory with tarballs and signature files of many individuals, none of whose GPG keys you've yet imported.
For one that occurs several times, key number 6D1ECD07:
Code:
6D1ECD07 Chase Phillips <cphillip@gmail.com>
I don't know the guy and the software he created but you have tried verifying his.

Eric
 
Old 09-26-2006, 03:53 PM   #18
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Original Poster
Rep: Reputation: 63
I don't know who he is either.

I'm just checking the files that are rsync'd using your slack current but I changed the path to be slack 10.2

Is it possible that other files are distributed by Slackware and they include original sources from the original writer's of the sources/software so they are there too?

here's copy paste of your modified script:

Quote:
VERSION=${VERSION=10.2}
TOPDIR="/home/fogie/slackware-10-2-rsync"
RSYNCURL="slackware.mirrors.tds.net::slackware"
#RSYNCURL="http://slackware.osuosl.org/slackware-10.2/"

echo "Syncing version '$VERSION' ..."

if [ ! -d ${TOPDIR}/slackware-$VERSION ]; then
echo "Target directory ${TOPDIR}/slackware-$VERSION does not exist!"
exit 1
fi

cd ${TOPDIR}/slackware-$VERSION
rsync $1 -vaz --delete --exclude "pasture/*" ${RSYNCURL}/slackware-$VERSION/ .
In an effort to make this go quick to find which files are bad, I tried looking for a gui application to do this, that is recurses thru subdirectories and echoe's file names and their validity and I can't find anything for this.

I really think the KDE team needs to make a service menu for konqueror that allows you to alt+click on two files, file.tar.gz.asc and file.tar.gz and a service menu come up, gpg verify it for you and show results in konqueror or a dialog box.

I'm shocked there is nothing like this.

Antivir, clam-av have context menu / service menu items that scan files or directories.

A simple desktop item in /home/user/.kde/share/apps/konqueror/servicemenus would be something like this, but my 'bash scripting' is so bad I have no idea how to do this.

I know file is %U

But soemthign in the order of
Quote:
[Desktop Entry]
ServiceTypes=all/allfiles,inode/directory
Actions=compute

[Desktop Action compute]
Name=GPG Verify
Exec=konsole --noclose 'gpg --verify %U > -q {} \; 2>&1' # <--here is where I'm off
Icon=kfm
 
Old 09-26-2006, 04:02 PM   #19
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Original Poster
Rep: Reputation: 63
In the essence of time, I guess basically, is there a way for the terminal/konsole to report/print/echo the name of the file that is not able to be verified because I do not have their key while I run the gpg verify stuff?

I'd just like to further investigate it, tho I'm really disappointed at this and may never work off of a mirror again, but I dont want to kill pat's bandwith either tho. Dilema.
 
Old 09-26-2006, 04:22 PM   #20
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Could you please tell me from which directory you run, and what exact command you run?
On my Slackware 10.2 mirrored packages I get nothing but:
Code:
gpg: Signature made Mon 24 Apr 2006 09:54:21 PM CEST using DSA key ID 40102233
gpg: Good signature from "Slackware Linux Project <security@slackware.com>"
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: EC56 49DA 401E 22AB FA67  36EF 6A44 63C0 4010 2233
Other GPG key signed packages should not be present there. If there are those in your Slackware mirrored tree, I'd start looking for serious abberations.

Eric
 
Old 09-26-2006, 05:38 PM   #21
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Original Poster
Rep: Reputation: 63
I have the script called rsync_slackware10-2.sh in my home

I just go into home, open up terminal and ./rsync_slackware10.2sh and let it go in terminal.

The files are saved as in /home/fogie/slackware-10-2-rsync

the contents of the script that I tweaked are above.
 
Old 09-27-2006, 01:12 AM   #22
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Original Poster
Rep: Reputation: 63
well,

I figure out how to make a kde service menu.

just open text editor and add:

Quote:
[Desktop Entry]
ServiceTypes=all/allfiles,inode/directory
Actions=compute

[Desktop Action compute]
Name=GPG Verify
Exec=konsole --noclose -T --GPGVerifier %D -e find . -name \*.asc -exec gpg --verify -v {} \;
#Exec=konsole --noclose -T --GPGVerifier %D -e find . -name \*.asc -print -a -fprint ~/Desktop/File-ending-in-asc.log
#the above does make a file & print out on screen for all files it finds with .asc extension
Icon=kgpg
Now save it to ~/.kde/share/apps/konqueror/servicemenus/new-gpg-menu.desktop

Your file is to be saved with .desktop extension.

Now you just go into the folder you rsync'd, right click on any file there, you need to do this so that the exec command above registers the %D (directory) command, now go to actions and select GPG Verify and it brings up konsole and will dive into subfolders, and list file names.

I recommend to go into konsole, settings, history, check off to have unlimited history and then settings 'save as default'.

Now to get a text file, you can save it from konsole.

Further notes:

-do I need the 2>&1 ? as Alien bob had?
-how do I get this to just dump a text output file too to ~/Desktop/gpg-verify.log

Any ideas appreciated.

License: eh?

Submit to kde?

Any thoughts appreciated.
 
Old 09-27-2006, 01:14 AM   #23
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Original Poster
Rep: Reputation: 63
oh the quote command here is playing with font sizes:

Quote:
#Exec=konsole --noclose -T --GPGVerifier %D -e find . -name \*.asc -print -a -fprint ~/Desktop/File-ending-in-asc.log
that's just one line, I just used that as a finder to asc files when I was making this, it's a good note so i left it in the file for myself.
 
Old 09-27-2006, 01:41 AM   #24
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Original Poster
Rep: Reputation: 63
oh so to make it short, all of the sources for /patches...that were rsync'd are all bad and a few of the regular sources for slackware itself. none of the install files or patches.

well time to format,gdisk/dod, reinstall all

see ya's when slack 12 is out
 
Old 09-27-2006, 09:05 PM   #25
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Original Poster
Rep: Reputation: 63
Before I dumped my pc I decided to do some investigating of the compromised(?) files vs that shown on slackware's ftp site, Pat V's. Basically, Pat "does" have stuff from "others" on the site in /patches/sources they check out vs what I have via the rsync, so now I'm really baffled but going to play it safe.
 
Old 09-28-2006, 02:55 AM   #26
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Aha! I checked only the Slackware packages, not the sources. Of course, Pat can only gpg-sign the stuff he creates himself.
So, problem solved - nothing was compromised.

Eric
 
Old 09-28-2006, 04:25 AM   #27
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Original Poster
Rep: Reputation: 63
Yeah that's what I'm thinking too because the "goofy named files" as I refer to them are also listed in his files list in the top level directory of slackware10.2 on the ftp site. so they do have a corresponding checksum, and those worked too.

Maybe I need to modify the script to also ignore source? in addition to ignoring pasture.
 
Old 09-28-2006, 04:27 AM   #28
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Original Poster
Rep: Reputation: 63
oh in case anyone finds this thread i changed the "q" to a "v" in Alien Bob's line and therefore that show's the file names and path to files. hope that helps.

now I'm off to try and figure out how to get enigmail/pgp to work. I think i need a gpg101 class.
 
Old 10-24-2006, 12:13 AM   #29
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Original Poster
Rep: Reputation: 63
@Alien Bob

Remember the gpg signature file above that I had for 'snort'

I made a thread over there and one of the snort employee's replied to my thread here:

http://www.snort.org/reg-bin/forums.cgi?topic_id=3267

So all well for now, and now they are going to do detached for future use.

I'm gonna notify admin's here at LQ maybe they want to make a sticky in 'security'.
 
Old 10-24-2006, 02:40 AM   #30
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Cool. I could not read the thread since it required registering at the snort forum site (which I did not want), so perhaps you could paste some of the relevant bits here?.

Eric
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make RSYNC skip a directory due to error message ArchW Linux - Networking 5 07-13-2006 10:26 AM
rsync no such file or directory (2) baronsam Linux - General 6 06-01-2006 06:13 PM
rsync skips directory when trying to restore weibullguy Linux - General 1 03-24-2006 10:24 PM
Can't verify package gpg signatures on Mandrake 10 ayn Mandriva 0 06-09-2004 07:45 AM
RSYNC - Stopping a sub-directory from mirrorring!! RKris Linux - Networking 1 05-19-2003 10:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:19 PM.

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