Re: Template and Wrong permision's. [message #37839 is a reply to message #37838] |
Tue, 27 October 2009 15:14 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) ![Go to next message Go to previous message](/theme/ovz3/images/down.png) |
|
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
|
|
|