LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Gzip permissions (https://www.linuxquestions.org/questions/linux-software-2/gzip-permissions-500067/)

eng69 11-09-2006 09:35 AM

Gzip permissions
 
Hello,

I have a win2k3 server with the unix for windows utility installed. We frequently use gzip to zip and unzip files. Everytime we zip or unzip, it strips the permissions from the file. Is there a way to tell gzip to leave permissions alone? I looked and could not find anything relating to this.

Thanks in advance.

uselpa 11-09-2006 02:04 PM

Can't you use tar instead? tar creates an archive with permissions and all kept, and you can optionally compress it.
To create a compressed archive: tar czf <archive.tgz> <files>
To reverse: tar xzf <archive.tgz>.
That's how you'd do it on regular Unix.


All times are GMT -5. The time now is 07:32 AM.