Message77301
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. |
|
Date |
User |
Action |
Args |
2008-12-08 12:22:11 | sjoerd | set | recipients:
+ sjoerd |
2008-12-08 12:22:10 | sjoerd | set | messageid: <1228738930.96.0.415999724625.issue4591@psf.upfronthosting.co.za> |
2008-12-08 12:22:10 | sjoerd | link | issue4591 messages |
2008-12-08 12:22:09 | sjoerd | create | |
|