The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 04:17 AM
Losing filename in grep output netguy Shell Programming and Scripting 6 04-27-2004 12:39 PM
losing time kburrows UNIX for Dummies Questions & Answers 9 01-02-2004 12:50 AM
IBM losing its Unix license? Neo News, Links, Events and Announcements 0 06-16-2003 09:24 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-21-2006
superdelic superdelic is offline
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.
  #2 (permalink)  
Old 07-21-2006
lorentz's Avatar
lorentz lorentz is offline
Registered User
  
 

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

Code:
tar cf ./file.tar ./file
and then gzip it
  #3 (permalink)  
Old 07-24-2006
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,942
The losing ownership thing is odd. What are the flags on the gzip executable? It might be setuid for some reason I cannot fathom.
  #4 (permalink)  
Old 07-24-2006
superdelic superdelic is offline
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:20 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0