Re: groupToRunAs failure on Fedora 1-64
Jacob Smullyan <[email protected]>
| Newsgroups | gmane.comp.web.skunkweb |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 2004-04-30 at 12:33, Adam DePrince wrote:
> I've run into a problem starting Skunkweb 3.4b5 on Fedora Core 1 x64.
> Almost certainly a python issue, but it is worth menioning.
x64, eh.
Does a simple test of os.setgid() outside of skunk fail when run as
root? If so, what about a non-Python test (run as root):
#include <sys/types.h>
#include <errno.h>
int main(void) {
if (0==setgid(5)) {
printf("setgid works\n");
return 0;
} else {
perror("setgid doesn't work");
return 1;
}
}
>
> When listening to port 80 I follow the recommendations regarding the
> setting of user params in swmgr and sw.conf. When I start I see this on
> my console over and over again.
>
> SkunkWeb exited abnormally! -- check the error log file
> for details
>
> and this in my error.log file (please forgive the long copy and paste):
>
> [Fri, 30 Apr 2004 15:37:16 GMT] [11772] ERROR: File
> "/home/adam/bin/skunkweb",
> line 97, in ?
> [Fri, 30 Apr 2004 15:37:16 GMT] [11772] ERROR:
> SkunkWeb.Server.start()
> [Fri, 30 Apr 2004 15:37:16 GMT] [11772] ERROR: File
> "/home/adam/lib/SkunkWeb/Server.py", line 159, in start
> [Fri, 30 Apr 2004 15:37:16 GMT] [11772] ERROR: svr.mainloop()
> [Fri, 30 Apr 2004 15:37:16 GMT] [11772] ERROR: File
> "/home/adam/lib/pylibs/ProcessMgr/ProcessMgr.py", line 147, in mainloop
> [Fri, 30 Apr 2004 15:37:16 GMT] [11772] ERROR: self._spawn()
> [Fri, 30 Apr 2004 15:37:16 GMT] [11772] ERROR: File
> "/home/adam/lib/pylibs/ProcessMgr/ProcessMgr.py", line 204, in _spawn
> [Fri, 30 Apr 2004 15:37:16 GMT] [11772] ERROR: self.run()
> [Fri, 30 Apr 2004 15:37:16 GMT] [11772] ERROR: File
> "/home/adam/lib/SkunkWeb/Server.py", line 88, in run
> [Fri, 30 Apr 2004 15:37:16 GMT] [11772] ERROR: os.setgid(gid)
> [Fri, 30 Apr 2004 15:37:16 GMT] [11772] ERROR:
> [Fri, 30 Apr 2004 15:37:16 GMT] [11772] ERROR: exceptions.OSError:
>
> Removal of the groupToRunAs option makes this go away, but with the
> obvious problem of not being able to set your group.
>
> Environment:
>
> AMD64 running Fedora 1 for AMD64
> Python 2.3.3 compiled with GCC 3.4.0 (installed via profiled-boot-strap)
> Egenix 2.0.5 compiled with GCC 3.4.0
> Skunkweb 3.4b5 configured with --without-mod_skunkweb (compiled and
> installed against the python and gcc versions described above)
>
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click