I am running a compiled python cgi script (using cxfreeze) in Apache. script, by the way, calls
os.setuid(some_uid)
os.setgid(some_gid)
Obviously, some_uid / gid are legal, and I set the sticky bit for the user and group and verified that it was actually set. However, with every call I get an error
os.setgid(int(self.gid))
OSError: [Errno 1] Operation not permitted
As you can see, setuid () is successful, setgid is not. This is very strange, at least for me, although I admit that I have little experience with permissions on Linux. Any thoughts / ideas are welcome.
I am using apache 2.2.15, python 2.6.5, RHEL 5.4 (kernel 2.6.18)
thank
source
share