The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Losing IP config on reboot of Solaris 8 jo calamine UNIX for Advanced & Expert Users 1 02-20-2007 12:17 AM
Losing filename in grep output netguy Shell Programming and Scripting 6 04-27-2004 08:39 AM
losing time kburrows UNIX for Dummies Questions & Answers 9 01-01-2004 08:50 PM
IBM losing its Unix license? Neo News, Links, Events and Announcements 0 06-16-2003 05:24 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-21-2006
Registered User
 

Join Date: Jan 2005
Posts: 8
Angry Losing ownership with gzip

I'm trying to sell the use of gzip instead of compress in our department. One issue I'm having (which is a showstopper) is that I lose the ownership when gzipping and gunzipping, though it's mentioned all over the web that files are supposed to keep ownership.

Example:
-rwxrwxrwx 1 ms32345 staff 2847 May 01 09:14 Do_Peyton_pd_Queries.ss

gzip -9f Do_Peyton_pd_Queries.ss

-rwxrwxrwx 1 ad87398 staff 1370 May 01 09:14 Do_Peyton_pd_Queries.ss.gz


Is there something I'm missing? We need to keep ownership for auditing purposes.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 07-21-2006
lorentz's Avatar
Registered User
 

Join Date: Jun 2006
Location: Saint Petersburg, Russia
Posts: 4
you just can use tar instead

Code:
tar cf ./file.tar ./file
and then gzip it
Reply With Quote
  #3 (permalink)  
Old 07-24-2006
Registered User
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 923
The losing ownership thing is odd. What are the flags on the gzip executable? It might be setuid for some reason I cannot fathom.
Reply With Quote
  #4 (permalink)  
Old 07-24-2006
Registered User
 

Join Date: Jan 2005
Posts: 8
The permissions for the executable are:

lrwxrwxrwx 1 root system 26 Mar 18 2004 gzip -> /usr/opt/freeware/bin/gzip

And that link's permissions are:

-rwxr-xr-x 3 root system 66303 May 27 2003 gzip
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:09 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0