login-event-processor

You can have external programs react to events in near real time. For example, if you wanted to run a script every time a user logged in, you would set login-event-processor to the full pathname of the script.  The server will then run that script each time, with various command line arguments.

Obviously I do not recommend using this facility unless you absolutely need to, for two important reasons:

  1. Spawning and executing programs impacts system performance.
  2. The programs are run with root privileges -- unless you are very experienced with writing secure programs, you could mistakenly leave your system vulnerable to malicious local users.
A safer way is to use the event-pipe feature, and have your own Perl script or C program read input from a named-pipe and process it.

Nevertheless, if you wish to proceed, you can look at the process_ncftpd_event.sh script which comes with the distribution as an example.

Examples:

Recommendation: See Also:
Up
Previous: ipc-key NcFTPd Home Next: log-misc