3 from cherrypy.process.plugins import DropPrivileges
4 class DropSock(DropPrivileges):
6 if cherrypy.server.socket_file:
8 os.chown(cherrypy.server.socket_file, self.uid, self.gid)
9 DropPrivileges.start(self)
12 DropSock(cherrypy.engine, uid='lighttpd', gid='apache').subscribe()
14 from handler import Root as _root