Can't generate new keys

2007-06-03 Thread rocko
When i try to make a new key i get the following error:
gpg: no writable public keyring found: eof
Key generation failed: eof
I'm using Ubuntu 7.04 and logged on as regular user.
I've generated a key before but i used: sudo gpg --gen-key
that works fine.
I just can't seem to do it as regular user.
Do i have to be root to gen a new key pair?


___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Can't generate new keys

2007-06-03 Thread Todd Zullinger
rocko wrote:
 When i try to make a new key i get the following error:
 gpg: no writable public keyring found: eof
 Key generation failed: eof
 I'm using Ubuntu 7.04 and logged on as regular user.
 I've generated a key before but i used: sudo gpg --gen-key
 that works fine.
 I just can't seem to do it as regular user.

I'd guess that the ownership/permissions on your ~/.gnupg dir and/or
keyring files are not correct.  Check that you own the directory and
the files in ~/.gnupg using ls -la ~/.gnupg (as a regular user).  It
should look something like this:

$ ls -la .gnupg/
total 88K
drwx--  2 user user 4.0K Apr  3 15:18 .
drwx-- 43 user user 4.0K Jun  3 20:34 ..
-rw---  1 user user 9.0K Dec  8 15:51 gpg.conf
-rw---  1 user user  11K Dec  8 16:02 pubring.gpg
-rw---  1 user user 9.7K Dec  8 15:56 pubring.gpg~
-rw---  1 user user  600 Dec  8 15:57 random_seed
-rw---  1 user user 1.3K Dec  8 15:52 secring.gpg
-rw---  1 user user 1.3K Dec  8 15:56 trustdb.gpg

-- 
ToddOpenPGP - KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~
Subtlety is the art of saying what you think and getting out of the
way before it is understood.
-- Anonymous



pgpgeTg8UpUwD.pgp
Description: PGP signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Can't generate new keys

2007-06-03 Thread Breen Mullins
* rocko [EMAIL PROTECTED] [2007-06-03 15:40 -0700]:

I just can't seem to do it as regular user.
Do i have to be root to gen a new key pair?

You shouldn't have to be. What are the permissions on 
~/.gnupg ?

Breen
-- 
Breen Mullins
Menlo Park, California

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Can't generate new keys

2007-06-03 Thread Robert J. Hansen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

 I'd guess that the ownership/permissions on your ~/.gnupg dir and/or
 keyring files are not correct.  Check that you own the directory and

Additionally, the command 'chown -R my_user_name:my_user_name .gnupg'  
can do magic to fix these problems.

- --
Robert J. Hansen [EMAIL PROTECTED]

Most people are never thought about after they're gone.  'I wonder
where Rob got the plutonium?' is better than most get. -- Phil Munson



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (Darwin)

iFYEAREIAAYFAkZjdSIACgkQf2XByo0Cu7MNsQDbBigv89TAx/EOOzU3T1I43Cw9
0sSNO6NXZdTwpQDeLbT/1dK/D5+YJ8Eck0U1bp1Jcw/odNOWfyB804kBHAQBAQgA
BgUCRmN1IgAKCRC3APSC/q+BCesRB/4+a/B1Zr+B8rpDylI5EaMBhgg6s1HrIHoc
pxiHx4Qo47Ef2JL/tNOT8HUCCwYqCgvRWeL5BpmivvWMcSRKbRnSQR/xeFk0hDK3
p1o/UpCW6HD5DKpm8AR0EPfdnLV7UcD6DOE7akR6K3Oc7DDaX02pKzZ8z/hYN+WW
XEvE/e1M1C9JKmmJfE6ao+FLrwHDnKvG0L/meUPXtIUFsa7tIb2m7C9gbINY6k/j
ieRYScqN0NDXSUMZiCzzPSrCh/nBxLxFtnw0EPDKt9S324NlTbbZDV4LyzVElFFQ
MnZUung9ciGmVnoakiNfDSEEErlByAZsJ9v8xCxKZrL5qNpAWhBP
=dpXF
-END PGP SIGNATURE-

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Can't generate new keys

2007-06-03 Thread Todd Zullinger
rocko wrote:
 Your right it seems my permissions are wrong:
 [EMAIL PROTECTED]:~$ ls -la .gnupg/
 total 40
 drwx--  2 acidblue acidblue 4096 2007-06-03 15:42 .
 drwxr-xr-x 72 acidblue acidblue 4096 2007-06-03 17:59 ..
 -rw---  1 acidblue acidblue   28 2007-05-19 11:47 gpg.conf
 -rw---  1 root root 4203 2007-05-19 11:54 pubring.gpg
 -rw---  1 root root 4203 2007-05-19 11:54 pubring.gpg~
 -rw---  1 acidblue acidblue  600 2007-06-03 15:36 random_seed
 -rw---  1 root root 1313 2007-05-19 11:54 secring.gpg
 -rw---  1 root root 1280 2007-05-19 11:54 trustdb.gpg
 
 How do i change this?
 Can i simply 'sudo chmod' the files 
 or do i have to reinstall gpg?

chown is what you want.  Something like this should do the trick:

$ sudo chown -R acidblue. ~/.gnupg

-- 
ToddOpenPGP - KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~
If the world didn't suck, we'd all fall off.



pgpz6SfRiLNaD.pgp
Description: PGP signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Can't generate new keys

2007-06-03 Thread rocko
'chown -R user' worked!
thanks everyone

On Sun, 2007-06-03 at 21:00 -0400, Todd Zullinger wrote:
 rocko wrote:
  Your right it seems my permissions are wrong:
  [EMAIL PROTECTED]:~$ ls -la .gnupg/
  total 40
  drwx--  2 acidblue acidblue 4096 2007-06-03 15:42 .
  drwxr-xr-x 72 acidblue acidblue 4096 2007-06-03 17:59 ..
  -rw---  1 acidblue acidblue   28 2007-05-19 11:47 gpg.conf
  -rw---  1 root root 4203 2007-05-19 11:54 pubring.gpg
  -rw---  1 root root 4203 2007-05-19 11:54 pubring.gpg~
  -rw---  1 acidblue acidblue  600 2007-06-03 15:36 random_seed
  -rw---  1 root root 1313 2007-05-19 11:54 secring.gpg
  -rw---  1 root root 1280 2007-05-19 11:54 trustdb.gpg
  
  How do i change this?
  Can i simply 'sudo chmod' the files 
  or do i have to reinstall gpg?
 
 chown is what you want.  Something like this should do the trick:
 
 $ sudo chown -R acidblue. ~/.gnupg
 


___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users