OpenVZ Forum


Home » General » Support » Template and Wrong permision's.
Re: Template and Wrong permision's. [message #37839 is a reply to message #37838] Tue, 27 October 2009 15:14 Go to previous messageGo to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

AshleyUk wrote on Tue, 27 October 2009 17:55

I'm using tar -pczf --numeric-owner /vz/template/cache/CentOS-5.4-i386-ISPConfig2.tar.gz .


See, the problem is tar's option 'f' requires an argument, a name of a tarball file. When you run it with 'f --numeric-owner' you specify '--numeric-owner' as a name of a tarball. All the other arguments are treated as files/directories to be (in your case) added to the tarball. Yes, tar is an old program with somewhat strange options, that sometimes lead to strange results.

So run ls in the directory you ran the tar in and be amazed that you have a file named --numeric-owner (and to remove it, use rm -- --numeric-owner, here -- is for rm to treat the following arguments as file names, not options).

Also, do not skip the part where I recommend checking the timestamp on a created tarball, and removing the old tarball before creating a new one.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: OpenVZ on SheevaPlug
Next Topic: I dont have access to internet in the vps
Goto Forum:
  


Current Time: Tue Jul 16 10:53:05 GMT 2024

Total time taken to generate the page: 0.02809 seconds