bug in os.getgroups?
Jason R. Mastaler
jason at mastaler.com
Tue Jun 25 17:53:06 EDT 2002
Jeff Epler <jepler at unpythonic.net> writes:
> This is liely to be because /tmp is "sticky":
/tmp was a bad choice for my example. The problem is the same in a
non-sticky directory such as /home.
# python
Python 2.2.1 (#1, Apr 22 2002, 10:19:01)
[GCC 2.95.3 20010315 (release) [FreeBSD]] on freebsd4
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.setgid(31)
>>> os.setuid(667)
>>> os.getgroups()
[31, 0, 2, 3, 4, 5, 20, 31]
>>> os.unlink('/home/junk')
Traceback (most recent call last):
File "<stdin>", line 1, in ?
OSError: [Errno 13] Permission denied: '/home/junk'
>>>
--
(http://tmda.sourceforge.net/)
More information about the Python-list
mailing list