gpg was working on my nobody user account but is not working now. i dont know whats happen. It works when i am logged in as the root user but i need it working for a web based form using the nobody account.
Whenever i try to run a gpg comand like gpg --list-keys its comes back with
gpg: can't open `/tmp/.gnupg/pubring.gpg'
gpg: keydb_search_first failed: file open error
also when i try to import a key:
gpg: can't open `/tmp/.gnupg/pubring.gpg'
gpg: keydb_get_keyblock failed: eof
gpg: no writable keyring found: eof
gpg: error reading `shop.asc': general error
gpg: import from `shop.asc' failed: general error
gpg: Total number processed: 0
but the files are there.
[nobody@srv1 .gnupg]$ ls
pubring.gpg random_seed secring.gpg
Is there any way to delete the .gnupg folder and create a new one? i am very confussed about what has happened.
thank you for any help