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: | Tue, 17 May 2005 15:14:00 -0700 |
Has anyone tried changing the "subsystem" entry in sshd_config? subsystem sftp /usr/lib/misc/sftp_wrapper /usr/lib/misc/sftp_wrapper: ----- #! /bin/sh /usr/lib/misc/sftp-server $* rsync ... ---- On 5/9/05, Eloi Granado <eloi.granado@millorsoft.net> wrote:
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!
--
END OF LINE
-MCP
--
END OF LINE
-MCP
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | RE: Security Practices, Bryan McAninch |
|---|---|
| Next by Date: | known_hosts vulnerability?, Gabriel M. Elder |
| Previous by Thread: | Re: bash_logout and sftp, Eloi Granado |
| Next by Thread: | Re: bash_logout and sftp, Robert L Sowders |
| Indexes: | [Date] [Thread] [Top] [All Lists] |