1834019 Members
2892 Online
110063 Solutions
New Discussion

gzip file

 
peterchu
Super Advisor

gzip file

I want to archive some files into one file and want add the password to the compressed , so that only authorized user can open it , is there any archive tool (tar / cpio) that can add the password to the compress file ? thx
5 REPLIES 5
Stefan Schulz
Honored Contributor

Re: gzip file

Hi,

you can use the zip and unzip utility which you can find on the porting center (e.g. at http://hpux.asknet.de )

With zip you can use the -e option to encrypt the archive with an password.

Hope this helps

Regards Stefan
No Mouse found. System halted. Press Mousebutton to continue.
Devender Khatana
Honored Contributor

Re: gzip file

Hi,

I do not think it is possible under unix. Atleast both tar and cpio does not seem to show any such option. Also unix depends on the file level permissions rather than passwords as you are looking for.

Curious to know if it is possible?

HTH,
Devender
Impossible itself mentions "I m possible"
Jannik
Honored Contributor

Re: gzip file

take a look at tools like gpg or as it is called now gnupg:
http://www.gnupg.org/
jaton
Alex Lavrov.
Honored Contributor

Re: gzip file

OR just change the owner to some user and give 700 permissions, so only that user (and root ofcourse) can read it.

Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Jannik
Honored Contributor

Re: gzip file

you can download depots from this site:
http://me.in-berlin.de/~pankow/
jaton