Beefy Boxes and Bandwidth Generously Provided by pair Networks
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 (Monsignor)
on May 07, 2014 at 21:00 UTC ( #1085378=note: print w/replies, xml ) Need Help??


in reply to Re^2: Script works when run with sudo, but not when run directly as root...?
in thread Script works when run with sudo, but not when run directly as root...?

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.

  • Comment on Re^3: Script works when run with sudo, but not when run directly as root...?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1085378]
help
Chatterbox?
[RonW]: RPerl is only a curiosity to me. I can see where some one who primarily codes in Perl might find RPerl useful, but to me, given the choice between RPerl's restrictions and C, I'd choose C
[LanX]: Rperl had better chances as alternative for inline::cpp
[LanX]: thus optimizing inner loops
[LanX]: .... well

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2017-05-22 20:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?