Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #35811
| Subject | Re: Tarfile and usernames |
|---|---|
| References | <CAAu18heZvrTXWTNDP-Cm116nO--9EUyxzRHOwwjpt4mZGBjj_A@mail.gmail.com> |
| Date | 2012-12-30 20:53 +0100 |
| From | "Michael Ross" <gmx@ross.cx> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1471.1356898890.29569.python-list@python.org> (permalink) |
[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
Re: Tarfile and usernames "Michael Ross" <gmx@ross.cx> - 2012-12-30 20:53 +0100
csiph-web