Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #35811 > unrolled thread

Re: Tarfile and usernames

Started by"Michael Ross" <gmx@ross.cx>
First post2012-12-30 20:53 +0100
Last post2012-12-30 20:53 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Tarfile and usernames "Michael Ross" <gmx@ross.cx> - 2012-12-30 20:53 +0100

#35811 — Re: Tarfile and usernames

From"Michael Ross" <gmx@ross.cx>
Date2012-12-30 20:53 +0100
SubjectRe: Tarfile and usernames
Message-ID<mailman.1471.1356898890.29569.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

On Sun, 30 Dec 2012 19:57:31 +0100, Nicholas Cole  
<nicholas.cole@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?

Regards,

Michael

>
> What is the right way to achieve this?
>
> Best wishes,
>
> Nicholas

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web