From owner-freebsd-questions Thu Apr 12 18:14: 0 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ns-exch05.jccc.net (ns-exch05.jccc.net [198.248.56.5]) by hub.freebsd.org (Postfix) with ESMTP id 5A6DA37B449 for ; Thu, 12 Apr 2001 18:13:54 -0700 (PDT) (envelope-from ndunker@jccc.net) Received: by ns-exch05 with Internet Mail Service (5.5.2653.19) id ; Thu, 12 Apr 2001 20:11:44 -0500 Message-ID: From: Noah Dunker To: 'ben' Cc: "'freebsd-questions@freebsd.org'" Subject: RE: gpg self extractor? Date: Thu, 12 Apr 2001 20:11:35 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm a real hash-bang monkey (I like shell scripting) this is what I came up with, but it doesn't ENCRYPT anything nor does it ask for a password but it's a start... [root@buddha test]# ls header kern.flp [root@buddha test]# cat header cat $0 | tail +4 > ./extractfile.tgz tar xvzf ./extractfile.tgz exit [root@buddha test]# tar cvzf kern.tgz kern.flp kern.flp [root@buddha test]# cat header kern.tgz > extractor [root@buddha test]# ls extractor header kern.flp kern.tgz [root@buddha test]# rm kern.flp rm: remove `kern.flp'? y [root@buddha test]# sh extractor kern.flp [root@buddha test]# ls extractfile.tgz extractor header kern.flp kern.tgz Basically, it's a shell script with extraction commands. you append the compressed stuff to the end of the file, and then your shell script uses tail to chop off the shell part into a file, and extract that compressed file as-is. I know it's dirty. Maybe you can use this to help come up with your encrypted/passworded stuff? Noah Dunker Systems Analyst/Technician Johnson County Community College -----Original Message----- From: ben [mailto:ben@stonehenge-net.com] Sent: Thursday, April 12, 2001 7:49 PM To: freebsd-questions@FreeBSD.ORG Subject: gpg self extractor? am looking for a way to encrypt a tar file in such a way that it will self extract with the correct password on the target systems (solaris & hpux). does anyone know of such a system, or switch for gzip? i should probibaly be using compress/uncompress instead of gzip, due to a lack of gnu stuff on our client machines... ben ____________ information wants to be beer To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message