Ok looks like I need to use the -o option to set the ownership to the user
that untars the file.
Looks as if tar is supposed to retain ownership especially for using tar to
backup files etc.  I guess I have always untarred files from sources that
were originally tarred as root instead of a normal user.
Darryl Cook wrote:
> I have an unusual problem with the root id.  Whenever I untar a package
> as root it picks an arbitrary user on our machine and makes them the
> owner of files that are untarred.  This owner permiates all the way down
> through the directories as well.  If I untar the same package as a
> normal user the problem isnt there, it is only with the root login.
> This could be very serious security problem if it goes unnoticed.  The
> fact that it happens only with the root login makes me think its a
> problem with the root login instead of tar but Im really not sure.  I
> have tried untarring with tar -xvf and -xvpf.  Anyone else seen this?
>
> We are running DU4.0f on a Alpha 2100A.
>
> thanks!
>
> darryl
Received on Thu Feb 08 2001 - 18:01:33 NZDT