sasuser2006
Technical User
I'm running this script to encrypt in perl on a linux box...
But i keep getting this error...
Any advice would be much appreciated. Thanks in advance.
Code:
#!/usr/bin/perl
my $key = "PGP_KEY";
my $file = $ARGV[0];
$cmd = "sudo -u gpg /usr/bin/gpg --homedir=/u01/home/mydir/.gnupg --no-tty --encrypt --recipient \"$key\" < $file > $file.
gpg ";
$res = system("$cmd");
if($res) {
print "ERROR: There was a problem...\n\t$res\n";
exit;
}
But i keep getting this error...
Code:
sudo: no passwd entry for gpg!
ERROR: There was a problem...
256