Re: extracting tar with nonexistant users

1997-04-15 Thread Jens B. Jorgensen
[EMAIL PROTECTED] wrote:
> 
> Hello,
> 
> I tried extracting a tar tape on a machine which did not
> have the same users as the machine on which the tar tape was
> created, it resulted in all the files created being owned by root.
> 
> I would have expected that it should have created the files
> with the same uid/gids as on the original machine.
> 
> Is this normal ?
> 
> Thanks
> 
> Lennard

Tar normally munges the permissions (I think using your current
umask) and makes all the files created belong to the user running
tar. That is normal behavior. If you want the permissions/user-ids
to be preserved (and no, it won't make a darn bit of difference if
the users aren't defined on the machine, as it's the user-id number
which is set on the file, and it doesn't have to be in /etc/passwd)
then use the '-p' parameter for tar.

-- 
Jens B. Jorgensen
[EMAIL PROTECTED]


Re: extracting tar with nonexistant users

1997-04-15 Thread Graeme Stewart
<[EMAIL PROTECTED]> writes:

> 
> I tried extracting a tar tape on a machine which did not
> have the same users as the machine on which the tar tape was
> created, it resulted in all the files created being owned by root.
> 
> I would have expected that it should have created the files
> with the same uid/gids as on the original machine.
> 

Yes. If you want to extract the same u/gids use the option
"--same-owner". Otherwise the files become the property of the
extractor.


Graeme


extracting tar with nonexistant users

1997-04-15 Thread ljk

Hello,

I tried extracting a tar tape on a machine which did not
have the same users as the machine on which the tar tape was
created, it resulted in all the files created being owned by root.

I would have expected that it should have created the files
with the same uid/gids as on the original machine.

Is this normal ?

Thanks 

Lennard