* tar badly hosed under OSF/1 V3 (second example)
@ 1994-12-06 17:29 Mark Bartelt
1994-12-07 16:32 ` Dave Parker
0 siblings, 1 reply; 3+ messages in thread
From: Mark Bartelt @ 1994-12-06 17:29 UTC (permalink / raw)
After upgrading all our AXPs from V2.0 to V3.0 of OSF/1, I discovered that
there are some really fundamental problems with tar (or actually, with the
new "pax" command, which "tar" is just a link to). Here's just one example
(others are documented in separate messages) ...
When, running as root, one copies a hierarchy from one directory to another,
the file ownerships on the target side get botched. For example:
WALRUS> mkdir /willow/sys/tmp_home
WALRUS> ( cd /home; tar cf - . ) | ( cd /willow/sys/tmp_home; tar xpf - )
WALRUS>
WALRUS> cd /home; ls -ld s*
drwxr-xr-x 2 shepherd system 512 Dec 5 12:55 shepherd
drwxr-xr-x 6 shuang system 512 Dec 2 15:15 shuang
drwxr-xr-x 4 squires system 512 Nov 16 22:41 squires
drwxr-xr-x 2 sridhar system 512 Aug 12 07:26 sridhar
drwxr-xr-x 2 stadel system 512 Sep 12 07:38 stadel
drwxr-xr-x 2 starkman system 512 Aug 12 07:26 starkman
drwxr-xr-x 5 syer system 1024 Aug 29 17:33 syer
drwxr-xr-x 3 sysmark system 512 Nov 4 08:58 sys
drwxr-xr-x 4 sysmark system 512 Nov 14 07:46 sysmark
WALRUS>
WALRUS> cd /willow/sys/tmp_home; ls -ld s*
drwxr-xr-x 2 shepherd system 512 Dec 5 12:55 shepherd
drwxr-xr-x 6 shepherd system 512 Dec 2 15:15 shuang
drwxr-xr-x 4 squires system 512 Nov 16 22:41 squires
drwxr-xr-x 2 squires system 512 Aug 12 07:26 sridhar
drwxr-xr-x 2 shepherd system 512 Sep 12 07:38 stadel
drwxr-xr-x 2 squires system 512 Aug 12 07:26 starkman
drwxr-xr-x 5 squires system 1024 Aug 29 17:33 syer
drwxr-xr-x 3 sysmark system 512 Nov 4 08:58 sys
drwxr-xr-x 4 syer system 512 Nov 14 07:46 sysmark
It isn't just the top-level directories which are affected; other files
further down also have the file ownership set wrong.
The *really* bizarre thing about this is that whenever a file gets the
wrong uid assigned to it, the user name (from /etc/passwd) of the "bad"
uid starts with the same letter of the alphabet as the user name which
matches the correct uid. Weird ...
By the way, using the "pax" command which (according to the man page) is
allegedly equivalent is even worse: All the files end up owned by root,
even if "-pe" is used.
Oh yeah, it's worth pointing out that the man page example is wrong. It
says that to do
( cd /fromdir; tar cf - . ) | ( cd /todir; tar xf - )
one can do
pax -rw /fromdir /todir
Wrong. That "pax" command actually does the equivalent of
( cd /; tar cf - fromdir ) | ( cd /todir; tar xf - )
One should actually do
cd /fromdir; pax -rw . /todir
Mark Bartelt 416/978-5619
Canadian Institute for mark@cita.toronto.edu
Theoretical Astrophysics mark@cita.utoronto.ca
"Clothes not busy being worn are busy drying." - Dylan, on laundry day
[ singing "It's all right, ma (I'm only bleaching)" ]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: tar badly hosed under OSF/1 V3 (second example)
1994-12-06 17:29 tar badly hosed under OSF/1 V3 (second example) Mark Bartelt
@ 1994-12-07 16:32 ` Dave Parker
1994-12-08 16:02 ` J. R. Valverde (4423)
0 siblings, 1 reply; 3+ messages in thread
From: Dave Parker @ 1994-12-07 16:32 UTC (permalink / raw)
In article <D0EGL4.AnL@info.physics.utoronto.ca>, sysmark@helios.physics.utoronto.ca (Mark Bartelt) writes:
< tar problem descriptions deleted >
I've forwarded your two postings to the group responsible for the maintenance
of tar.
In the meantime, you can use the previous version of tar (when "tar" was "tar")
from the following subsets:
OSFOBSOLETE300 - DEC OSF/1 V3.0
OSFOBSOLETE320 - DEC OSF/1 V3.2
These subsets contain old versions of awk, cpio, and tar. You can use these in
place of the commands on your system if they work better for you.
Dave
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: tar badly hosed under OSF/1 V3 (second example)
1994-12-07 16:32 ` Dave Parker
@ 1994-12-08 16:02 ` J. R. Valverde (4423)
0 siblings, 0 replies; 3+ messages in thread
From: J. R. Valverde (4423) @ 1994-12-08 16:02 UTC (permalink / raw)
In article <3c4o3l$c3@jac.zko.dec.com>, djp@peewee.unx.dec.com (Dave Parker) writes:
>From: djp@peewee.unx.dec.com (Dave Parker)
>Newsgroups: comp.unix.osf.osf1
>Subject: Re: tar badly hosed under OSF/1 V3 (second example)
>Reply-To: djp@peewee.unx.dec.com (Dave Parker)
>
>In article <D0EGL4.AnL@info.physics.utoronto.ca>, sysmark@helios.physics.utoronto.ca (Mark Bartelt) writes:
>
> < tar problem descriptions deleted >
>
>I've forwarded your two postings to the group responsible for the maintenance
>of tar.
>
>In the meantime, you can use the previous version of tar (when "tar" was "tar")
>from the following subsets:
>
>OSFOBSOLETE300 - DEC OSF/1 V3.0
>OSFOBSOLETE320 - DEC OSF/1 V3.2
>
>These subsets contain old versions of awk, cpio, and tar. You can use these in
>place of the commands on your system if they work better for you.
>
>Dave
>
>
I filled a report to the CERT and to DEC some time ago about some security
problems in DEC's OSF/1 tar.
It seems that tar works correctly on version 3.0 ... Dunno since we haven't
received it until last week and is still uninstalled.
We are using GNU Tar without any problem now. My advise is that you do
the same until an official note stating the fiability of it is released.
jr
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1994-12-08 16:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-12-06 17:29 tar badly hosed under OSF/1 V3 (second example) Mark Bartelt
1994-12-07 16:32 ` Dave Parker
1994-12-08 16:02 ` J. R. Valverde (4423)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox