Bug 150935

Summary: gnupg fails to create a key pair when run for the first time
Product: Red Hat Enterprise Linux 4 Reporter: Ian Laurie <nixuser>
Component: gnupgAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED DUPLICATE QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: jos, pb
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-09-07 18:20:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ian Laurie 2005-03-12 05:47:18 UTC
Description of problem:
gnupg fails to create a key pair.  It looks like the directory
~/.gnupg doesn't get created as it should when run for the first time.

Version-Release number of selected component (if applicable):
gnupg-1.2.6-1

How reproducible:
Always.

Steps to Reproduce:
1. Launch gpg to generate a key pair for the first time.
2.
3.
  
Actual results:
Trying to generate a key pair using the --gen-key option, you get an
error as follows:

helix# gpg --gen-key
.
 [snip]
.
gpg: no writable public keyring found: eof
Key generation failed: eof
gpg: can't create `/root/.gnupg/random_seed': No such file or directory


Expected results:
Should create the ~/.gnupg directory and create the key pairs on first
run.

Additional info:
FC3 seems to have the same problem.  Worked OK in RHEL3 from what I
remember.

Comment 1 Peter Bieringer 2005-03-30 12:09:15 UTC
Can confirm, see also:

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=146167

Comment 2 Nalin Dahyabhai 2005-09-07 18:20:01 UTC

*** This bug has been marked as a duplicate of 142206 ***