Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
.logout/.bash_logout option using sftp and/or ftp??
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
corey_s
Apprentice
Apprentice


Joined: 29 Jun 2003
Posts: 264

PostPosted: Sat Apr 09, 2005 6:41 pm    Post subject: .logout/.bash_logout option using sftp and/or ftp?? Reply with quote

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
View user's profile Send private message
Nil_Spaar
Apprentice
Apprentice


Joined: 10 Jul 2004
Posts: 179
Location: Berlin, Germany

PostPosted: Sat Apr 09, 2005 8:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
corey_s
Apprentice
Apprentice


Joined: 29 Jun 2003
Posts: 264

PostPosted: Sat Apr 09, 2005 8:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum