sftp

Kevin Cozens kevin-4dS5u2o1hCn3fQ9qLvQP4Q at public.gmane.org
Sat May 28 14:01:11 UTC 2011


On Fri, May 27, 2011 at 04:22:34PM -0400, Randy Jonasz wrote:
> I was wondering if anyone could offer me some advice.  When someone logs in
> to a server using sftp, can I have a login script execute?  And another
> script execute when they log out?  I tried editing /etc/bash.bash_logout and
> /etc/bash.bashrc only to discover a sftp connection does not spawn a shell.

If the ftp daemon is spawned using inetd you could configure inetd to run a 
shell script instead which would do the prelogin stuff, run sftpd, then run 
other things after sftpd terminates. If sftpd is running all the time, this 
won't work.


--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list