freezing Medusa

eugene.leitl@l... eugene.leitl@l...
Tue, 27 Mar 2001 14:16:06 -0000


Anything running wrong when freezing Medusa?
As root under Linux, I can run start_medusa.py unmodified
as it comes out of the tarball.

[root@p... medusa]# python start_medusa.py
warning: Cannot do reverse lookup
info: Medusa (V3.39) started at Tue Mar 27 16:12:58 2001
Hostname: 205.160.176.5
Port:8080

info: FTP server started at Tue Mar 27 16:12:58 2001
Authorizer:<ftp_server.anon_authorizer instance at 8159250>
Hostname: pc27.infochem.de
Port: 8021
info: Monitor Server (V1.28) started on port 9999
Chat Server (V1.6) started on port 8888 

But not the frozen result:

[root@p... medusa]# ./start_medusa
warning: Cannot do reverse lookup
info: Medusa (V3.39) started at Tue Mar 27 16:14:03 2001
Hostname: 205.160.176.5
Port:8080

info: FTP server started at Tue Mar 27 16:14:03 2001
Authorizer:<ftp_server.anon_authorizer instance at 0x820f6ec>
Hostname: pc27.infochem.de
Port: 8021
info: Monitor Server (V1.28) started on port 9999
Chat Server (V1.6) started on port 8888
Traceback (most recent call last):
File "start_medusa.py", line 193, in ?
os.setegid (gid)
OSError: [Errno 1] Operation not permitted 

Huh? The culprit seems to be becoming nobody:

# become 'nobody'
if os.name == 'posix':
import os
if hasattr (os, 'seteuid'):
# look in ~medusa/patches for {set,get}euid.
import pwd
[uid, gid] = pwd.getpwnam ('nobody')[2:4]
os.seteuid (uid)
os.setegid (gid) 

Can anybody clue me in?