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


Groups > comp.lang.python > #35811

Re: Tarfile and usernames

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <gmx@ross.cx>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.013
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; '*not*': 0.07; 'extracted': 0.07; 'root,': 0.07; 'preserve': 0.09; 'library': 0.15; 'dec': 0.15; 'archives.': 0.16; 'received:your-server.de': 0.16; 'tarfile': 0.16; 'wrote:': 0.17; 'documented': 0.17; 'module': 0.19; 'email addr:gmail.com&gt;': 0.20; "user's": 0.22; 'specified': 0.23; 'user.': 0.23; 'to:2**1': 0.23; 'header:In- Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'charset:iso-8859-15': 0.26; "doesn't": 0.28; 'this?': 0.28; '+0100,': 0.29; 'archives': 0.29; "i'm": 0.29; 'anywhere': 0.33; 'extract': 0.33; 'wishes,': 0.33; 'to:addr:python-list': 0.33; "can't": 0.34; 'michael': 0.36; 'does': 0.37; 'subject:: ': 0.38; 'files': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'list,': 0.39; 'between': 0.63; 'content-type:multipart/related': 0.65; 'dear': 0.66; 'computers': 0.69; 'hoping': 0.72; 'cole': 0.84; 'computers.': 0.84
Content-Type multipart/alternative; boundary=----------x3mTvUs16i8i4CN5KkrF6t
To python-list@python.org, "Nicholas Cole" <nicholas.cole@gmail.com>
Subject Re: Tarfile and usernames
References <CAAu18heZvrTXWTNDP-Cm116nO--9EUyxzRHOwwjpt4mZGBjj_A@mail.gmail.com>
Date Sun, 30 Dec 2012 20:53:08 +0100
MIME-Version 1.0
From "Michael Ross" <gmx@ross.cx>
In-Reply-To <CAAu18heZvrTXWTNDP-Cm116nO--9EUyxzRHOwwjpt4mZGBjj_A@mail.gmail.com>
User-Agent Opera Mail/12.12 (Win32)
X-Authenticated-Sender gmx@ross.cx
X-Virus-Scanned Clear (ClamAV 0.97.5/16221/Sun Dec 30 19:38:53 2012)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1471.1356898890.29569.python-list@python.org> (permalink)
Lines 68
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1356898890 news.xs4all.nl 6965 [2001:888:2000:d::a6]:59780
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:35811

Show key headers only | View raw


[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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web