LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   FTP server with events (https://www.linuxquestions.org/questions/linux-software-2/ftp-server-with-events-402253/)

p0ser 01-11-2006 08:00 PM

FTP server with events
 
Hi guys,

I've installed both vsftpd and pure-ftpd in my box, but AFAIK they don't support events like OnUserLoggin, OnFileUpload, etc.. I need a scrpit to be executed everytime a user logins, and I'm finding that goal surprisingly difficult to achieve under Linux, specially when almost every windows server has support for these kind of events (Gene6, Serv-U, etc).

What do you recommend?

Thanks in advance.

gilead 01-11-2006 08:35 PM

I don't know of any options to have vsftpd run a script. Can you tell us what you want the script to do? There may be another way to achieve the same thing.

p0ser 01-12-2006 06:23 AM

Quote:

Originally Posted by gilead
I don't know of any options to have vsftpd run a script. Can you tell us what you want the script to do? There may be another way to achieve the same thing.

Sure gilead, thanks for the reply. I'd like my ftpd to execute a simple bash script whenever a users logs in. In particular, I need it to mount a samba share in another machine, so a symlink in the user home dir works.

gilead 01-12-2006 12:05 PM

I'm not optimistic, but vsftpd supports the session_support option. It requires pam but it doesn't say in the docs whether it will cause the users normal startup scripts to run on login. If they did, you could put the mount script in .bash_profile.

p0ser 01-12-2006 04:43 PM

Quote:

Originally Posted by gilead
I'm not optimistic, but vsftpd supports the session_support option. It requires pam but it doesn't say in the docs whether it will cause the users normal startup scripts to run on login. If they did, you could put the mount script in .bash_profile.

Further research lead me to wzdftpd [wzdftpd.net] and glFTPd [glftpd.com] which, from what I understood, support scripts/events. I'm goona give them a try this weekend, as I'm kinda busy atm. Will report my experience later. If none of them work I might try your vsftpd suggestion.
Thanks again.


All times are GMT -5. The time now is 02:19 PM.