[comp.unix.questions] Problem with tar

luong@cs.utexas.edu (Hue Nhu Luong) (06/18/91)

I try to un-tar the file xloadimage.3.01.tar by entering:

	tar -xvf xloadimage.3.01.tar

But what I get is a bunch of boloneies like this:

	tar: can't set time on Imakefile: Not owner
	tar: can't set time on Makefile: Not owner
	tar: can't set time on Makefile.std: Not owner
	tar: README: HELP - extract write error: Permission denied
	x Imakefile, 1847 bytes, 4 tape blocks
	x Makefile, 6758 bytes, 14 tape blocks
	x Makefile.std, 6758 bytes, 14 tape blocks
	x README, 15694 bytes, 31 tape blocks

Can somebody help me with this?

les@chinet.chi.il.us (Leslie Mikesell) (06/19/91)

In article <1560@cash.cs.utexas.edu> luong@cs.utexas.edu (Hue Nhu Luong) writes:

>	tar -xvf xloadimage.3.01.tar
>	tar: can't set time on Makefile.std: Not owner
>	tar: README: HELP - extract write error: Permission denied

Sounds like you are on sysV where non-root users can change a file's
ownership and tar defaults to restoring the original owners id.  Use the
o option to make all the files owned by yourself:
tar xovf file

Les Mikesell
  les@chinet.chi.il.us

koerber.sin@sni.de (Mathias Koerber) (06/20/91)

In article <1560@cash.cs.utexas.edu> luong@cs.utexas.edu (Hue Nhu Luong) writes:
|
|I try to un-tar the file xloadimage.3.01.tar by entering:
|
|	tar -xvf xloadimage.3.01.tar
|
|But what I get is a bunch of boloneies like this:
|
|	tar: can't set time on Imakefile: Not owner
|	tar: can't set time on Makefile: Not owner
|	tar: can't set time on Makefile.std: Not owner
|	tar: README: HELP - extract write error: Permission denied
|	x Imakefile, 1847 bytes, 4 tape blocks
|	x Makefile, 6758 bytes, 14 tape blocks
|	x Makefile.std, 6758 bytes, 14 tape blocks
|	x README, 15694 bytes, 31 tape blocks
|
|Can somebody help me with this?

a) be sure you have write access in the directory you are untaring in.

and more important:

b) use tar -xvof xloadimage.3.01.tar
			  ^

   the o keyletter makes you owner of all files you grabbed off the archive.
   Otherwise tar tries to reinstate the original owner/group (using the
   number,not the name), and that may not be you. After it grabbed it, changed
   the owner to the original, it tries to re-set the time, and can't since
   it's not your file anymore.

PS: "o" is not documented on my system, but works.

Hope this helps.

Mathias