Re: bash_logout and sftp
From: Eloi Granado (eloi.granado_at_millorsoft.net)
Date: 05/09/05
- Previous message: Stephen Cooke (KN): "RE: Binding ssh to a loopback address"
- In reply to: Corey: "bash_logout and sftp"
- Next in thread: Robert Hajime Lanning: "Re: bash_logout and sftp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
To: secureshell@securityfocus.com Date: Mon, 9 May 2005 19:48:48 +0200
What about using ProFTPd with SSL support instead? You can generate a xferlog
or a "ftp commands logfile". Then there are some things you can do with this
file.
First could be to write a little script which would "tail -f", and execute the
appropiate rsync commands.
Another option could be to create a named pipe as a source for Syslog-NG, and
use it as the xferlog or extendedlog of ProFTPd. And then, in Syslog-NG
define an "exec" destination.
Problem : if they write a lot of small files, you could end launching hundreds
of simultaneous rsyncs.
On Sunday 01 May 2005 11:56, Corey wrote:
> Using openssh-3.9_p1
>
> Is it possible to have user's ~/.bash_logout invoked after disconnecting
> from sftp sessions?
>
> I was hoping it would be a simple matter of enabling the UseLogin config
> option. Does this only really work w/ ssh sessions, or is there something
> I can do to somehow get this ( or equivalent ) functionality w/ sftp
> sessions?
>
> ( What I'm trying to get working is to execute user-specific rsync jobs for
> mirroring purposes whenever a user finishes uploading files using sftp - it
> seemed that a .logout sort of rc script would be the easiest method of
> doing this; the only other option I can think of is to use a log analyzer
> to grep for 'session closed for user' msgs )
>
>
> Thanks!
- Previous message: Stephen Cooke (KN): "RE: Binding ssh to a loopback address"
- In reply to: Corey: "bash_logout and sftp"
- Next in thread: Robert Hajime Lanning: "Re: bash_logout and sftp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]