All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Samuel <samuel@bcgreen.com>
To: Luca Ferrari <fluca1978@infinito.it>, linux-admin@vger.kernel.org
Subject: Re: automount thru winscp
Date: Fri, 09 Sep 2005 06:04:23 -0700	[thread overview]
Message-ID: <43218857.3060303@bcgreen.com> (raw)
In-Reply-To: <4320775D.20602@infinito.it>

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@bcgreen.com
		   http://www.bcgreen.com/~samuel/
   Powerful committed communication. Transformation touching
     the jewel within each person and bringing it to light.


  parent reply	other threads:[~2005-09-09 13:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-08 17:39 automount thru winscp Luca Ferrari
2005-09-09 10:01 ` Adam T. Bowen
2005-09-09 10:30   ` Luca Ferrari
2005-09-09 12:01     ` Adam T. Bowen
2005-09-09 13:04 ` Stephen Samuel [this message]
2005-09-10  3:33   ` linux-user

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43218857.3060303@bcgreen.com \
    --to=samuel@bcgreen.com \
    --cc=fluca1978@infinito.it \
    --cc=linux-admin@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.