gpg --list-sigs (root for other users)

Werner Koch wk at gnupg.org
Wed Mar 3 18:44:50 CET 2004


On Tue, 2 Mar 2004 17:14:10 +0100, Albert  said:

> How can root list or export the keys of 1 or better all user(s) on a 
> machine without su?

What about:

for i in `awk -F: '{print $6}' /etc/passwd`; do
  echo "*** keys in $i ****"
  gpg --homedir $i/.gnupg --list-keys
done

or 

for i in `getent passwd | awk -F: '{print $6}'`; do
  echo "*** keys in $i ****"
  gpg --homedir $i/.gnupg --list-keys
done


hth,

  Werner




More information about the Gnupg-users mailing list