No such thing as a small change | |
PerlMonks |
Re^3: Script works when run with sudo, but not when run directly as root...?by hippo (Bishop) |
on May 07, 2014 at 21:00 UTC ( [id://1085378]=note: print w/replies, xml ) | Need Help?? |
Unsurprisingly, the two environments you have listed there differ in the value of $HOME. Crypt::GPG uses this to find the keyrings, so if the keys aren't present on root's keyring, it won't stand a chance.
In Section
Seekers of Perl Wisdom
|
|