Tarfile and usernames

Michael Ross 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,
> Nicholas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20121230/4b2b1b2b/attachment.html>

More information about the Python-list mailing list