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: 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>': 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" Subject: Re: Tarfile and usernames References: Date: Sun, 30 Dec 2012 20:53:08 +0100 MIME-Version: 1.0 From: "Michael Ross" In-Reply-To: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 ------------x3mTvUs16i8i4CN5KkrF6t Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On Sun, 30 Dec 2012 19:57:31 +0100, Nicholas Cole 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 ------------x3mTvUs16i8i4CN5KkrF6t Content-Type: multipart/related; boundary=----------x3mTvUs16i8i4CKDyJrQrh ------------x3mTvUs16i8i4CKDyJrQrh Content-Type: text/html; charset=iso-8859-15 Content-ID: Content-Transfer-Encoding: Quoted-Printable On Sun, 30 Dec 2012 19:57:31 +0100, Nicholas Cole <nicholas.col= e@gmail.com> wrote:

Dear = List,

I'm hoping to use the tarfile module in the sta= ndard library to move some files between computers. 

=
I can't see documented anywhere what this library does with u= serids 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. <= /div>

Essentially, I do *not* with to preserve the owner a= nd groups specified in the archives.

As long as you don't extract as root, doesn't extracting set th= e extracting user's uid/gid anyway?

Regards,

Michael

<= div dir=3D"ltr">

What is the right way to achieve thi= s?

Best wishes,

Nicholas

=



------------x3mTvUs16i8i4CKDyJrQrh-- ------------x3mTvUs16i8i4CN5KkrF6t--