- I installed proftpd via RPM (Dag) on a CentOS 3 box, and it works fine.
- I'm intrigued by mod_wrap. Is there any way to add/enable it to an
- RPM-installed version of proftpd? If so, if you could point me in the
- right direction, I'd appreciate it.
It's quite possible that if your RPM builder was thinking about it he
included mod_wrap, since it is a popular module. Do like:
If mod_wrap is one of them, it's in there. Notice in mine it isn't. If
you're using newest Proftpd, then you may have DSO support and you can get
mod_wrap like this if proftpd was built with mod_dso (as seen above) and
you have mod_wrap as a dynamic module laying around somewhere. Here's mine
as a Linux .so shared-object:
If you see a directory of mod_*.so's then those are the dynamic modules
that it's builder built with it. (I built all of the modules, then stored
them as .so's in case sometime I need them I can load them. This seemed
like a good idea to me.)
I'm not sure if at this point you can just compile *one* module as dynamic
after the proftpd binary is already built (like Apache2's apxs util, when
you build, say, libphp5.so for php or something like that), but that would
be a question for TJ. I don't think I saw it in the docs. If not, that can
go on the wish list ;)
Pull in the module by the config file...
ModuleControlsACLs insmod,rmmod allow user root
ModuleControlsACLs lsmod allow user *
Then configure it...
# Enable wtmp so 'last' works correctly.
TCPAccessFiles /etc/hosts.allow /etc/hosts.deny
TCPAccessSyslogLevels info warn
Then start it, activating my mod_wrap block above. This lets me run from
xinetd or standalone with the same file, but prefer xinetd's own
tcpwrappers when under it.
You can also load modules with ftpdctl, if that is built-in to your
server, but that requires more modules that you may or may not have. In
short, if proftpd -l doesn't list it and you don't have it as a loadable
dynamic module, you'll have to remove the RPM and compile your own
proftpd. It's not hard, and you can tweak it how you like.
Confidentiality Notice: This email may contain confidential
and privileged information. If in the event that it does,
please send it back to me with a reply telling me how
stupid I am for sending confidential info to a public forum.
> I'm not sure if at this point you can just compile *one* module as dynamic
> after the proftpd binary is already built (like Apache2's apxs util, when
> you build, say, libphp5.so for php or something like that), but that would
> be a question for TJ. I don't think I saw it in the docs. If not, that can
> go on the wish list ;)
There is no prxs tool as yet, but there are instructions for how to
manually build a shared module outside of the proftpd build system:
Our eyes are holden such that we cannot see things that stare us in the face,
until the hour arrives when the mind is ripened, then we behold them, and
the time when we saw them not is like a dream.
-Ralph Waldo Emerson