Bug 24398 - vps-create: tar --numeric-owner
Summary: vps-create: tar --numeric-owner
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: vzctl (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Andrew Vasilyev
QA Contact: qa-sisyphus
URL: http://bugzilla.openvz.org/show_bug.c...
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-23 20:11 MSD by Michael Shigorin
Modified: 2010-10-25 16:02 MSD (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.