* shell environment when mounting
@ 2009-09-14 13:40 Stef Bon
2009-09-16 3:33 ` Ian Kent
0 siblings, 1 reply; 2+ messages in thread
From: Stef Bon @ 2009-09-14 13:40 UTC (permalink / raw)
To: autofs
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: shell environment when mounting
2009-09-14 13:40 shell environment when mounting Stef Bon
@ 2009-09-16 3:33 ` Ian Kent
0 siblings, 0 replies; 2+ messages in thread
From: Ian Kent @ 2009-09-16 3:33 UTC (permalink / raw)
To: Stef Bon; +Cc: autofs
Stef Bon wrote:
> 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??
Programs do generally inherit the environment within which they are
started. So yes, of course.
Ian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-09-16 3:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-14 13:40 shell environment when mounting Stef Bon
2009-09-16 3:33 ` Ian Kent
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.