11-03-2014
PGP encryption issue with Crontab
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
PGP encryption works manually but not with crontab
2. Relevant commands, code, scripts, algorithms:
Below Command works fine manually
pgp --encrypt $file_path --recipient "publickey" -v --home-dir /$HOME/alice/.pgp/
But the same command when included in a test.sh and scheduled through crontab, it gives "pgp: not found" error
3. The attempts at a solution (include all code and scripts):
I assume that crontab kicks off with root user and the root user is unable to find the location of pgp installed in the user alice.
Specified --home-dir argument explicitly, even then it didn't work.
4. Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):
WIP, IL, USA
Note: Without school/professor/course information, you will be banned if you post here! You must complete the entire template (not just parts of it).
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I have 2 systems that cannot telnet directly into our UNIX system via IP. The only thing that separate these 2 systems from all the others in our office is that they run a PGP encryption within Outlook. I can telnet to a different server and then telnet from there to the one I want to get to, but... (7 Replies)
Discussion started by: jgordon
7 Replies
2. Solaris
Hi
Someone is going to send me a file that they have encrypted by PGP encryption on windows pc to my solaris 9 server.
They will give me the pgp key to decrypt the file.
How can I do this on solaris 9
Is there a tool installed by default to decrypt or do I need to install something to... (0 Replies)
Discussion started by: frustrated1
0 Replies
3. UNIX for Advanced & Expert Users
Hi
I have one script for doing the gpg encryption on linux.
The encrytion is doing fine when i am running the script from command prompt on linux
The same script when it is triggering from mainframe using sysopts option in NDM(connect direct) the encryption step in the shell script is... (0 Replies)
Discussion started by: Arvind Maurya
0 Replies
4. Cybersecurity
Hi All,
I am new to the concept of encryption and shell and i have been assigned to do pgp encryption of a file before ftping it.
I am developing the script using MKS Toolkit on Windows XP and the script will run later on actual unix box.
I am going through documents provided by pgp... (2 Replies)
Discussion started by: sandeepb
2 Replies
5. UNIX for Dummies Questions & Answers
Hello,
Does anyone know if it's normal to have a very different file size after a file has been encrypted using pgp?
Before encryption: 582.7618598938 MB
After encryption: 98.73 MB
Thanks in advance for any help, (2 Replies)
Discussion started by: tekster757
2 Replies
6. Solaris
Hi,
i am trying to encrypt a file using pgp with a recepient's public key. The file is encrypted but the output file has owner & group nobody. i am not able to change it either. Please let me know how to do pgp encryption so that i get the output with owner and group as the same user which runs... (4 Replies)
Discussion started by: renjyverghese
4 Replies
7. Linux
I have file in linux which I need to do the PGP encryption.
Through manually I am using this command to do the same
gpg -c scsrun.log
Enter passphrase :
Repeat Passphrase :
But how I can achive this using linux script.
Thanks
How to use code tags (3 Replies)
Discussion started by: mr_harish80
3 Replies
8. UNIX for Advanced & Expert Users
Hi,
Could anyone please help me in understanding how PGP can be installed and configured in HP-UX machines.Is there any separate licence required ? and what are the minimum system requirements to have PGP installed on a server (1 Reply)
Discussion started by: tinivt
1 Replies
9. Cybersecurity
Hi all,
I'm looking for secure file encryption tools that use MAC address as encryption key. FYI, I'm using Red Hat Enterprise Linux OS.
For example: when A wants to send file to B
A will encrypt the file with B's computer MAC/IP address as an encryption key
This file can only be decrypted... (2 Replies)
Discussion started by: sergionicosta
2 Replies
LEARN ABOUT DEBIAN
pgpverify
pgpverify(8) System Manager's Manual pgpverify(8)
NAME
pgpverify - cryptographically verify Usenet control messages
SYNOPSIS
pgpverify
DESCRIPTION
The pgpverify program reads (on standard input) a Usenet control message that has been cryptographically signed using the signcontrol pro-
gram. pgpverify then uses the pgp program to determine who signed the control message. If the control message was validly signed, pgpver-
ify outputs (to stdout) the User ID of the key ID that signed the message.
OPTIONS
The pgpverify program takes no options.
EXIT STATUS
pgpverify returns the follow exit statuses for the following cases:
0 The control message had a good PGP signature.
1 The control message had no PGP signature.
2 The control message had an unknown PGP signature.
3 The control message had a bad PGP signature.
255 A problem occurred not directly related to PGP analysis of signature.
AUTHOR
David C Lawrence <tale@isc.org>
ENVIRONMENT
pgpverify does not modify or otherwise alter the environment before invoking the pgp program. It is the responsibility of the person who
installs pgpverify to ensure that when pgp runs, it has the ability to locate and read a PGP key file that contains the PGP public keys for
the appropriate Usenet hierarchy administrators.
SEE ALSO
pgp(1)
NOTES
Historically, Usenet news server administrators have configured their news servers to automatically honor Usenet control messages based on
the originator of the control messages and the hierarchies for which the control messages applied. For example, in the past, David C
Lawrence <tale@uunet.uu.net> always issued control messages for the "Big 8" hierarchies (comp, humanities, misc, news, rec, sci, soc,
talk). Usenet news administrators would configure their news server software to automatically honor newgroup and rmgroup control messages
that originated from David Lawrence and applied to any of the Big 8 hierarchies.
Unfortunately, Usenet news articles (including control messages) are notoriously easy to forge. Soon, malicious users realized they could
create or remove (at least temporarily) any Big 8 newsgroup they wanted by simply forging an appropriate control message in David
Lawrence's name. As Usenet became more widely used, forgeries became more common.
The pgpverify program was designed to allow Usenet news administrators to configure their servers to cryptographically verify control mes-
sages before automatically acting on them. Under the pgpverify system, a Usenet hierarchy maintainer creates a PGP public/private key pair
and disseminates the public key. Whenever the hierarchy maintainer issues a control message, he uses the signcontrol program to sign the
control message with the PGP private key. Usenet news administrators configure their news servers to run the pgpverify program on the
appropriate control messages, and take action based on the PGP key User ID that signed the control message, not the name and address that
appear in the control message's From or Sender headers.
Thus, using the signcontrol and pgpverify programs appropriately essentially eliminates the possibility of malicious users forging Usenet
control messages that sites will act upon, as such users would have to obtain the PGP private key in order to forge a control message that
would pass the cryptographic verification step. If the hierarchy administrators properly protect their PGP private keys, the only way a
malicious user could forge a validly-signed control message would be by breaking the RSA encryption algorithm, which (at least at this
time) is believed to be an NP-complete problem. If this is indeed the case, discovering the PGP private key based on the PGP public key is
computationally impossible for PGP keys of a sufficient bit length.
<URL:ftp://ftp.isc.org/pub/pgpcontrol/> is where the most recent versions of signcontrol and pgpverify live, along with PGP public keys
used for hierarchy administration.
pgpverify(8)