Tarfile and usernames
gmx at ross.cx
Sun Dec 30 20:53:08 CET 2012
On Sun, 30 Dec 2012 19:57:31 +0100, Nicholas Cole
<nicholas.cole at gmail.com> wrote:
> Dear List,
> I'm hoping to use the tarfile module in the standard library to move
> some files between computers.
> I can't see documented anywhere what this library does with userids and
> groupids. I can't guarantee that the computers involved will have the
> >same users and groups, and would like the archives to be extracted so
> that the files are all owned by the extracting user.
> Essentially, I do *not* with to preserve the owner and groups specified
> in the archives.
As long as you don't extract as root, doesn't extracting set the
extracting user's uid/gid anyway?
> What is the right way to achieve this?
> Best wishes,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list