View previous topic :: View next topic |
Author |
Message |
corey_s Apprentice
Joined: 29 Jun 2003 Posts: 264
|
Posted: Sat Apr 09, 2005 6:41 pm Post subject: .logout/.bash_logout option using sftp and/or ftp?? |
|
|
Ok, I'm trying to figure out a way to execute a program when a users logs out of an sftp and/or an ftp session.
Anyway of doing this? |
|
Back to top |
|
|
Nil_Spaar Apprentice
Joined: 10 Jul 2004 Posts: 179 Location: Berlin, Germany
|
Posted: Sat Apr 09, 2005 8:06 pm Post subject: |
|
|
That heavyly depends on your ftp server. I recommend you take a look at it's documentation to see if there is such an option. |
|
Back to top |
|
|
corey_s Apprentice
Joined: 29 Jun 2003 Posts: 264
|
Posted: Sat Apr 09, 2005 8:58 pm Post subject: |
|
|
I have spent time looking into the server config options for ssh ( for sftp ) and proftpd, but was unsuccessfull; which is why I'm asking here.
Here's what I'm trying to setup:
#1: <user> logs into server via sftp ( or ftp ), and uploads some content/media.
#2: <user> logs out when finished.
#3: when the user logs out, an rsync is initiated to mirror whatever may have been uploaded to another machine.
It's #3 that I'm trying to figure how to get done. It would be easy with ssh or telnet, but s/ftp is posing difficulty - I don't know whether I have simply been unable to find the correct option or whether it is just not possible. If it's not possible through config options, then I need to figure out some other way, perhaps monitoring w/utmp with a script/daemon or something?
Any helpfull ideas or pointers would be much appreciated.
Thanks! |
|
Back to top |
|
|
|