How about making a tar archive first, it saves owner and permission
info. You will have control for these during unarchiving.

This is the reason (don't know if there's another) why gzip doesn't have
controls for permission because tar already has that functionality.

And you should look at cpio, which is endorsed by the current unix spec.

On Mon, 2008-03-17 at 15:17 +0800, F. Jerand wrote:
> Thanks sir/madam. I already looked into that. In fact, I tried to set
> it at 00 but still getting the error. Any other ideas?
> 
> TIA,
> Jerand
> 
> Message: 2
> Date: Sun, 16 Mar 2008 19:51:40 +0800
> From: atreux <[EMAIL PROTECTED]>
> Subject: Re: [plug] Gzip query
> To: "Philippine Linux Users' Group (PLUG) Technical Discussion List"
>        <[email protected]>
> Message-ID:
>        <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> if i'm not mistaken, you possibly have your umask set to 077...
> 
> 
> On Sun, Mar 16, 2008 at 12:24 AM, F. Jerand <[EMAIL PROTECTED]> wrote:
> 
> > Hello everyone,
> >
> > I need your expertise. When doing a gzip (inHP-UX 11iv2), the file
> > permission is changed. What is the logic behind this?
> >
> > -rw-rw-rw-   1 user1      user1          390 Mar  8 09:06 sqlnet.log
> >
> > After running:
> >
> > [EMAIL PROTECTED]:/home/user2]
> > $ gzip -N -v -f sqlnet.log
> > sqlnet.log:     gzip: sqlnet.log.gz: Not owner
> >  93.6% -- replaced with sqlnet.log.gz
> >
> >
> > -rw-------   1 user1      user1          390 Mar  8 09:06 sqlnet.log.gz
> >
> >
> > TIA
> _________________________________________________
> Philippine Linux Users' Group (PLUG) Mailing List
> [email protected] (#PLUG @ irc.free.net.ph)
> Read the Guidelines: http://linux.org.ph/lists
> Searchable Archives: http://archives.free.net.ph
-- 
Alec Joseph Rivera
F S 3 Consulting Inc.
http://www.fs3.ph

Attachment: signature.asc
Description: This is a digitally signed message part

_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to