On Wednesday 25 June 2003 9:00 am, Guillaume Rousse honored me with this 
communique:
> Ainsi parlait Adam Williamson :
> > On Wed, 2003-06-25 at 03:22, Jay DeKing wrote:
> > > On Monday 23 June 2003 5:36 pm, zapoyok honored me with this communique:
> > > > Le Lundi 23 Juin 2003 20:22, Guillaume Rousse a �crit :
> > > > > for keys in `gpg --list-keys | grep pub | cut -d " " -f 3 | cut -d
> > > > > "/" -f 2`; do
> > > > >     gpg --export -a $key > $key.asc; rpm --import $key.asc; rm -f
> > > > > $key.asc; done
> > > >
> > > > for key in `gpg --list-keys | grep 'pub '| cut -d " " -f 3 | cut -d
> > > > "/" -f 2`; do
> > > >     gpg --export -a $key > $key.asc; rpm --import $key.asc; rm -f
> > > > $key.asc; done
> > > >
> > > > is better no ??
> > >
> > > No.
> > >
> > > ./fixkeys: line 5:  : command not found
> > > error: 604AA4E4.asc: import read failed.
> >
> > <snip>
> >
> > Are you sure you copy / pasted correctly? As I read it, there *aren't*
> > five lines in that scriptlet.
>
> Here it is again, with 5 lines denoted by indentation:
> for key in `gpg --list-keys | grep pub | tail +2 | cut -d " " -f 3 | cut -d
> "/" -f 2`; do
>       gpg --export --armor $key;
>       rpm --import $key.asc;
>       rm -f $key.asc;
> done

There weren't 5 lines in my scriptlet, but the word-wrap in my email made it 
look that way. Sorry about the confusion.

I tried putting the "; do" on the same line as the "for", as in Guillaume's 
example - now I get the full text of the keys dumped to stdout, and every one 
of them fails. Example:
error: E762AD4D.asc: import read failed.

If I run the same script via sudo, I get the following (ignore the word wrap, 
it's all on one line) in each case, after the full text of the keys:
gpg: WARNING: unsafe ownership on configuration file 
"/home/jdeking1/.gnupg/gpg.conf"

The permissions on all files with ~/.gnupg are: -rw------- and I (not root) am 
the owner. Is this the correct permission level? It seems that it should be.

Thanks
Jay DeKing
aka "that damn Yank"

-- 
Opportunity is missed by most people because it is dressed
in overalls and looks like work.
- Thomas Edison


Reply via email to