Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

run script when loggin in with sftp

From: Christian Johansson <pt99cjo(at)student.bth.se>
Date: Wed Apr 09 2003 - 04:38:05 EDT

Hi

I'm using i386 OpenBSD 3.2 as a ssh server. When users log in with ssh login-commands can be run as normal with .bash_profile, but how do you get the same login-commands to run when they log in with sftp on the same account?

I tried putting the login-commands in ~/.ssh/rc, but that was ignored when using sftp. I tried changing /etc/ssh/sshd_config to "UseLogin yes", because I thought that would force it to read the login scripts, but no. I found nothing on Google or in the archives. Maybe I'm missing something very simple here, please show me the light.

Thanks in advance

/christian

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

          how can you go to a zoo without having a drink!
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Received on Wed Apr 9 18:23:57 2003

Do you need help?X

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:57 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library