[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Net::FTPServer] Re: sending mail, forking
From: |
Richard Jones |
Subject: |
Re: [Net::FTPServer] Re: sending mail, forking |
Date: |
Tue, 22 Aug 2006 14:49:41 +0100 |
User-agent: |
Mutt/1.5.9i |
On Tue, Aug 22, 2006 at 09:25:31AM -0400, Lenga, Yair [CIB-FI] wrote:
> I remember having similar problem with my own customized
> FTPServer. if your net::ftpserver is running in chroot, you have to
> make sure that you are loading all the required classes, and
> performing any rqeuired initialization (i.e., reading /etc/mime.types,
> ...) BEFORE the chroot.
>
> In my case, I found that the code is attempting to resolve service
> names from /etc/services - and it must be done done before the
> CHROOT. My solution was to resolve the service name into number as
> part of the server init, before forking setuid/chrooted childs.
Indeed. You can see an example of this in the main server code. Look
in FTPServer.pm and search down for the comment "Open /etc/protocols etc"
Another alternative is to avoid chroot altogether.
Rich.
--
Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology - http://merjis.com
Team Notepad - intranets and extranets for business - http://team-notepad.com