Help me on CommandLine Key Deletion in GPG 1.0.7

Marcus Brinkmann Marcus.Brinkmann at ruhr-uni-bochum.de
Fri Jul 26 04:57:01 CEST 2002


On Thu, Jul 25, 2002 at 09:07:15AM +0200, Werner Koch wrote:
> On Wed, 24 Jul 2002 10:20:35 +0800, Enzo Michelangeli said:
> 
> > Perhaps to avoid ruinous bulk deletion of secret keys by mistake (e.g.,
> 
> Ah sure.
> 
> This is a good idea but we can take it even further and require the
> use of a fingerprint which should uniqly identify a key.  I'll change
> this for batch mode.

Please note that it also doesn't work for public keys:

marcus at ulysses[2]:~/projects/aegypten/cvs/gpgme-b/tests/gpg$ LC_ALL=C GNUPGHOME=. gpg --batch --comment "" --status-fd 2 --no-tty --charset utf8 --verbose --delete-key -- Whisky
gpg: Warning: unsafe permissions on directory "."
gpg: Warning: unsafe permissions on file "./pubring.gpg"
gpg: can't do that in batchmode without "--yes"

marcus at ulysses[2]:~/projects/aegypten/cvs/gpgme-b/tests/gpg$ LC_ALL=C GNUPGHOME=. gpg --comment "" --status-fd 2 --charset utf8 --verbose --delete-key -- Whisky
gpg (GnuPG) 1.0.7; Copyright (C) 2002 Free Software Foundation, Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See the file COPYING for details.

gpg: Warning: unsafe permissions on directory "."
gpg: Warning: unsafe permissions on file "./pubring.gpg"
pub  1024D/EC67DBDE 1999-03-08   Whisky Test (demo key) <whisky at example.net>

Delete this key from the keyring?

And then it works, it also works with --yes, of course, which would be a
kludge we could apply to gpgme.

Thanks,
Marcus

-- 
`Rhubarb is no Egyptian god.' GNU      http://www.gnu.org    marcus at gnu.org
Marcus Brinkmann              The Hurd http://www.gnu.org/software/hurd/
Marcus.Brinkmann at ruhr-uni-bochum.de
http://www.marcus-brinkmann.de/




More information about the Gnupg-devel mailing list