Re: [Python-Dev] Help needed for tar archive creation with changed UID/GID

2009-10-06 Thread Michael Foord
bheemesh v wrote: Hello, I am a newbie to this mailing list, i have seen in some mail discussions about a tar archive creation by forcibly setting the UID/GID to a specific user (say root). Hello Bheemesh, This mailing list is for the development of Python, not for developing *with* Python

Re: [Python-Dev] Help needed for tar archive creation with changed UID/GID

2009-10-06 Thread Stefan Behnel
bheemesh v wrote: > I am a newbie to this mailing list, i have seen in some mail discussions > about a tar archive creation by forcibly setting the UID/GID to a specific > user (say root). Note that this is the mailing list about core development of the CPython interpreter, not about general Pytho

[Python-Dev] Help needed for tar archive creation with changed UID/GID

2009-10-06 Thread bheemesh v
Hello, I am a newbie to this mailing list, i have seen in some mail discussions about a tar archive creation by forcibly setting the UID/GID to a specific user (say root). Te code mentioned goes like this: tar = tarfile.open("foo.tar.gz", "w:gz") for filename in filenames: tarinfo = tar.gettar