Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: bash_logout and sftp |
|---|---|
| Date: | Thu, 05 May 2005 21:34:24 -0400 |
( 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 )
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
-Kevin
pgpRF3FeUiccL.pgp
Description: PGP signature
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Disconnecting: Corrupted MAC on input., David Ho |
|---|---|
| Next by Date: | Re: Disconnecting: Corrupted MAC on input., weiser, olaf |
| Previous by Thread: | Re: bash_logout and sftp, Steven W. Orr |
| Next by Thread: | Re: bash_logout and sftp, Derek Martin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |