LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 06-04-2007, 03:14 PM   #16
troybtj
LQ Newbie
 
Registered: May 2007
Location: South Dakota
Distribution: Debian Etch (8), XP (1), FreeBSD (1), HP-UX (1)
Posts: 23

Rep: Reputation: 15

what is the output of gpg -k

pub 1024D/1C214030 2007-06-02
uid freddy (test key) <none@nowhere.com>
sub 2048g/6E009DA6 2007-06-02

pub 1024D/062BC4DF 2007-06-02
uid testing (test key two) <testing@testing.com>
sub 1024g/85D5A33B 2007-06-02

pub 1024D/3D11E4FF 2007-06-02
uid chalkroot (another test key, with password) <root@noemail.org>
sub 1024g/76E9FC59 2007-06-02

There is the snip from my gpg used in example above. The --recipient is the name in bold (uid line) of each public key. So you should have a greg (info) <gregs@email.com> line there if you intend to encrypt it to greg.

try gpg --sign-key greg

see if that gives you an error. signing that key basically states you trust that key belongs to greg.
 
Old 06-05-2007, 03:43 AM   #17
aeby
Member
 
Registered: Mar 2007
Posts: 109

Original Poster
Rep: Reputation: 15
Hi,

gpg -k gives me
[root@arsha root]# gpg -k
/root/.gnupg/pubring.gpg
------------------------
pub 1024D/53812876 2007-05-03 WorkForce <greg@workforce.co.za>
sub 2048g/158416E1 2007-05-03

pub 1024D/C1CA0757 2007-06-05 arsha (arsha) <arshab@workforce.co.za>
sub 1024g/33CBBAAC 2007-06-05

i also tried signing the key greg
gpg --sign-key greg with my secret key to trustt and accept it.
but still it does gives me the same message

There is no indication that this key really belongs to the owner

Now what ??
 
Old 06-05-2007, 04:17 AM   #18
aeby
Member
 
Registered: Mar 2007
Posts: 109

Original Poster
Rep: Reputation: 15
Hi,
can u please give me ur email address so that i can mail the public key and see if it works

Regards,
 
Old 06-05-2007, 05:52 AM   #19
aeby
Member
 
Registered: Mar 2007
Posts: 109

Original Poster
Rep: Reputation: 15
Hi troybtj,
My cron file log generated looks like this,

gpg: using secondary key 158416E1 instead of primary key 53812876
gpg: 158416E1: There is no indication that this key really belongs to the owner
gpg: cannot open /dev/tty: No such device or address
 
Old 06-05-2007, 02:56 PM   #20
troybtj
LQ Newbie
 
Registered: May 2007
Location: South Dakota
Distribution: Debian Etch (8), XP (1), FreeBSD (1), HP-UX (1)
Posts: 23

Rep: Reputation: 15
With the file he gave you (his public key)

type gpg --import <keyfilename>

Then if you type gpg -k it should show up. If not, have him resend the key, make sure it is not corrupt.
 
Old 06-13-2007, 08:53 AM   #21
aeby
Member
 
Registered: Mar 2007
Posts: 109

Original Poster
Rep: Reputation: 15
Hi,
i sorted the problem after a long while,
run the script using crontab -e instead of directly putiing it in /etc/crontab, it some how sets up the environment variables correctly

regards

Aeby
 
  


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
which encryption should I use, gpg? Melsync Linux - Security 4 07-06-2006 05:26 AM
GPG Encryption Problems in Kmail TatforTit Linux - Newbie 16 02-27-2006 10:35 PM
gpg filename encryption ??? rino.caldelli Linux - Security 2 02-26-2006 06:34 AM
gpg encryption for signing keys synapse Mandriva 1 01-22-2004 10:10 AM
gpg / pgp encryption pteren Linux - Software 8 07-26-2003 03:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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