Re: bash_logout and sftp
From: Corey (corey_s_at_qwest.net)
Date: 05/07/05
- Previous message: Corey: "Re: bash_logout and sftp"
- In reply to: Kevin Sullivan: "Re: bash_logout and sftp"
- Next in thread: Robert L Sowders: "Re: bash_logout and sftp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 6 May 2005 17:33:31 -0700 To: secureshell@securityfocus.com
On Thursday 05 May 2005 06:34 pm, Kevin Sullivan wrote:
> How disciplined are your users?
>
Heheh...
> Have them create/transfer a dummy
> "/tmp/alldone" file as the last thing they do. A periodic cron job can
> check for it and if it exists, delete it and run rsync.
>
This is a good idea, but simply too much to expect from our user's - and just
not reliable enough.
> Or in sshd_config, replace the sftp line with:
> Subsystem sftp /usr/libexec/sftp-server-rsync
>
> And create /usr/libexec/sftp-server-rsync containing:
>
> #! /bin/sh
> /usr/libexec/sftp-server "$@"
> touch /tmp/alldone >/dev/null 2>&1
>
Hmmm, I hadn't thought of that - this may be a possible avenue if I can come
up with some clever way(s) of avoiding the potential pitfalls you mentioned.
Thanks!
- Previous message: Corey: "Re: bash_logout and sftp"
- In reply to: Kevin Sullivan: "Re: bash_logout and sftp"
- Next in thread: Robert L Sowders: "Re: bash_logout and sftp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]