When decrypt a gpp-file (gpg-d file.gpg> file) i got the error-message “gpg: decryption failed: No secret key”. It’s funny, the key is certainly there.
chmod o + rw $ (tty)
Apparently gpg has inside the su environment a few problems. Sure, you can also set the necessary variables differently.