Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-09-2006, 09:35 AM   #1
LQ Newbie
Registered: Dec 2005
Posts: 4

Rep: Reputation: 0
Question Gzip permissions


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.
Old 11-09-2006, 02:04 PM   #2
Senior Member
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get update error: "gzip: stdin: not in gzip format" haertig Debian 0 08-02-2006 05:21 PM
Solaris 8 gzip issues- cannot gzip -d lynx sixosix Solaris / OpenSolaris 4 03-13-2005 03:17 PM
help with gzip Johnny Mac Linux - Newbie 4 11-09-2004 06:08 PM
Gzip InfoLock Linux - Software 4 09-02-2003 08:20 AM
gzip boyinfrance Linux - Newbie 3 05-19-2002 08:42 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration