OpenVZ Forum


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

OK...

Quote:
Im using "tar -pczf --numeric-owner /vz/template/cache/CentOS-5.4-i386-ISPConfig2.tar.gz"


This appears to be an incorrect command (at least on my system).

This is because (a) 'f' option should be followed by a file name, i.e. "tar ...f file.tar.gz". In your case you specify to pack the file /vz/template/cache/CentOS-5.4-i386-ISPConfig2.tar.gz into a tarball named (literally) "--numeric-owner". So no, you have not recreated your tarball using the correct options, instead you are just using the old one.
(b) You forgot the dot (.) at the end.

The correct command would be something like

tar -pczf /vz/template/cache/CentOS-5.4-i386-ISPConfig2.tar.gz --numeric-owner .


So, please
(1) use the correct tar command and options
(2) remove the old tarball before creating a new one
(3) check the resulting tarball's date/time.

Also you can check if the uids/gids inside the tarball are correct. For that, find out the uid/gid of mysql inside the CT:

ls -lnd /var/run/mysqld
grep mysql /etc/passwd
grep mysql /etc/group


Then, check the resulting tarball:

tar tzvf file.tar.gz var/run/mysqld

You should see uid/gid as numbers (not names) and they should be the same as the ones you saw the step before (in ls -lnd and grep output).


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 08:55:19 GMT 2024

Total time taken to generate the page: 0.02706 seconds