Bug 24398

Summary: vps-create: tar --numeric-owner
Product: Sisyphus Reporter: Michael Shigorin <mike>
Component: vzctlAssignee: Andrew Vasilyev <andy>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P3 CC: andy, erthad
Version: unstable   
Hardware: all   
OS: Linux   
URL: http://bugzilla.openvz.org/show_bug.cgi?id=1678

Description Michael Shigorin 2010-10-23 20:11:27 MSD
If we untar the template cache while messing with usernames/groupnames/uids/gids, things can go very wrong.  So better leave permissions alone as they are in tarball.

Patch here:
http://git.altlinux.org/people/mike/packages/?p=vzctl.git;a=commitdiff;h=f028f1cd6db1158bd22cce206557d9446252fe03
Comment 1 Dmitry V. Levin 2010-10-23 20:23:43 MSD
$ git grep numeric-owner
scripts/vps-create.in:	local TAR_OPT="--numeric-owner"

Isn't it enough?
Comment 2 Michael Shigorin 2010-10-25 16:02:09 MSD
Ah, commit 58cdfb09cd70c37a14df14d34ad8b0c8e155c9f2 was quite post-4.0 (Oct 2009).
Stumbled upon this with vzctl-3.0.18-alt1 -- as the backport is not very likely, let's invalidate this.