This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sjoerd
Recipients sjoerd
Date 2008-12-08.12:22:09
SpamBayes Score 1.3566315e-11
Marked as misclassified No
Message-id <1228738930.96.0.415999724625.issue4591@psf.upfronthosting.co.za>
In-reply-to
Content
On Fedora 8 and 10 using Python 2.5.1 and 2.5.2 (64 bit):

$ grep nfsnobody /etc/passwd
nfsnobody:x:4294967294:4294967294:Anonymous NFS
User:/var/lib/nfs:/sbin/nologin

So the UID of nfsnobody is 4294967294 (-2 if viewed as signed 32-bit int).

>>> import pwd, os
>>> print pwd.getpwnam('nfsnobody').pw_uid
4294967294
>>> os.chown('some file', pwd.getpwnam('nfsnobody').pw_uid,
pwd.getpwnam('nfsnobody').pw_gid)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OverflowError: signed integer is greater than maximum

The reason for this error is that os.chown uses the "i" format to
convert the second and third arguments.  But the valued do not fit in a
32-bit signed integer.  uid_t and gid_t are defined as unsigned
quantities on this system.

The bug does not occur on 32 bit Fedora since there the uid and gid of
nfsnobody are 65534.
History
Date User Action Args
2008-12-08 12:22:11sjoerdsetrecipients: + sjoerd
2008-12-08 12:22:10sjoerdsetmessageid: <1228738930.96.0.415999724625.issue4591@psf.upfronthosting.co.za>
2008-12-08 12:22:10sjoerdlinkissue4591 messages
2008-12-08 12:22:09sjoerdcreate