sftp

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Fri May 27 20:39:57 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.

sftp runs using a subsystem, not the shell.  This makes it simple to
chroot and such, and works for users without shell access.

I have never checked if you can do anything scripted around sftp.

-- 
Len Sorensen
--
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