Re: bash_logout and sftp

From: Steven W. Orr (steveo_at_syslang.net)
Date: 05/05/05

  • Next message: David Ho: "Re: Disconnecting: Corrupted MAC on input."
    Date: Thu, 5 May 2005 15:32:30 -0400 (EDT)
    To: Corey <corey_s@qwest.net>
    
    

    On Sunday, May 1st 2005 at 02:56 -0700, quoth Corey:

    =>
    =>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 )

    I'll say no. You're not running bash in the first place.

    If you use ssh to log in, then yes. If you execute a remote command, then
    also yes.

    -- 
    Time flies like the wind. Fruit flies like a banana. Stranger things have  .0.
    happened but none stranger than this. Does your driver's license say Organ ..0
    Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
    individuals! What if this weren't a hypothetical question?
    steveo at syslang.net
    

  • Next message: David Ho: "Re: Disconnecting: Corrupted MAC on input."