Re: automount thru winscp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You could placee the following in users'  ~/.bashrc file:

if  [ -n "$SSH_CLIENT" -a  -n '$DID_SSH_INIT" ] ; then
   export DID_SSH_INIT=yes
   engage_automount
fi

This doesn't differeentiate between ssh and scp, but it should be a good start.

If you need to do something on exit, you can use
trap 'exiting_ssh' EXIT

Remember, however, that the user may be still logged in beyond this onee session

Luca Ferrari wrote:

Hi,
I've got a linux server with samba shares behind a firewall. Since my users want to see their shares from the outside network, I thought to dynamically mount shares on the firewall (using, for example, automount) providing access thru winscp, that has a quite windows like look & feel. The problem is that I cannot understand when the user connects, that means automount does not work with a winscp session, and that I cannot mount shares thru the ~/.bash_profile script, since it is not executed (maybe .profile is executed?). Any idea on how to solve the problem?
Thanks,
Luca

--

Stephen Samuel +1(604)876-0426                samuel@xxxxxxxxxxx
		   http://www.bcgreen.com/~samuel/
  Powerful committed communication. Transformation touching
    the jewel within each person and bringing it to light.

-
: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux