i made some tests on my debian, and this proves a little puzzling...

gzip went ok as expected, with user2 being given ownership of the new
compressed file. also, the permissions given were the same as the old file.

and looking at the inodes of the original and the compressed file, before
and after running gzip, showed they are two different files, meaning the old
file was not just truncated, written on and given a new name.

but in your case, it seems different...

a new file was also created but the owner is retained (user1) and the umask
used was 077...

maybe this is an HP *nix flavor specific ?



On Mon, Mar 17, 2008 at 3:17 PM, F. Jerand <[EMAIL PROTECTED]> 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
>
_________________________________________________
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