gpg: keyblock resource issue

Todd Todd <Freedom_Lover@pobox.com>
Thu Sep 18 03:23:01 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Nigel Dunn wrote:
> I've been thru the last few months worth of emails and haven't found a
> solution to my problem. I created a user called gpguser then did gpg
> -gen-key as gpguser. When I change user and try to do gpg -homedir
> /home/gpguser/.gnupg/ --list-keys these are the errors I got:
>
> gpg --homedir /home/gpguser/.gnupg/ --list-keys
> gpg: Warning: using insecure memory!
> gpg: keyblock resource `/home/gpguser/.gnupg/': file open error
> gpg: keyblock resource `/home/gpguser/.gnupg/': file open error
>
> I've tried making the .gnupg chmod 777 and its files and that doesn't
> fix the problem either. Can someone enlighten me as I'm very confused.

Does the user you are trying to access /home/gpguser/.gnupg/ have permission
to that directory *and all of it's parent directories*?  Most times a user's
home dir has perms of 700, so you could either copy/move the gnupg files
somewhere that this second user has permission to or you could set the
permissions on /home/gpguser/.gnupg/ (and parents) to allow the second user
access.

If you go the latter route, gpg will complain about the insecure permissions
(for good reason).  If you know you have a good reason to do this, you can
tell gpg to keep quiet with the no-permission-warning option.

You should at least be sure that you need to share the .gnupg dirs first.
Why do you think you need to do that instead of using separate dirs for each
user?

- -- 
Todd              OpenPGP -> KeyID: 0xD654075A | URL: www.pobox.com/~tmz/pgp
============================================================================
You will never find time for anything.  If you want time you must make it.
    -- Charles Buxton

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: When crypto is outlawed bayl bhgynjf jvyy unir cevinpl.

iD8DBQE/aQkHuv+09NZUB1oRAnxXAKCMLR/WuqRiMVF2qaCYh7lrsvXDmQCfc3Ug
ycdaRXNjl/edPv3xirZRgjw=
=3vcK
-----END PGP SIGNATURE-----