From: Stef Bon <stef@bononline.nl>
To: autofs@linux.kernel.org
Subject: shell environment when mounting
Date: Mon, 14 Sep 2009 15:40:27 +0200 [thread overview]
Message-ID: <4AAE47CB.5050603@bononline.nl> (raw)
Hello,
I'm using a construction where the automounter is started when a
sessions starts, using ConsoleKit.
Look at:
http://linux.bononline.nl/linux/fuse-workspace/index.php
I'm using the feature of ConsoleKit to run a script/program when a
session is added, and when it's removed, in
/etc/ConsoleKit/run.d.
Now here some environmentvariables are set by ConsoleKit, indicating the
user, the seat and the session, and more.
Part of my construction is a wrapper shell script around mount.cifs,
which calls mount.cifs with the right parameters.
It's a sh script. Now I've found out that the environmentvariables set
by ConsoleKit are still set when this script is run.
It looks like the mount.md5key (this is the name of the wrapper) shell
script is using the same environment as when the
automounter is started.
Is this right??
Stef Bon
next reply other threads:[~2009-09-14 13:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-14 13:40 Stef Bon [this message]
2009-09-16 3:33 ` shell environment when mounting Ian Kent
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=4AAE47CB.5050603@bononline.nl \
--to=stef@bononline.nl \
--cc=autofs@linux.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.