On 9/11/06, Lars Madsen <[EMAIL PROTECTED]> wrote:
>
> Some months ago I mentioned a potential problem in lbus_event_handler.sh,
> I can see that from LTSP 4.2.4 the problem persists.
>
> Here is the problem
>
> Under the remove_all clause one will find the following line
>
> for mount in `grep ltspfs /proc/mounts | grep "${HOME}" | \
> awk '{print $2}'`
>
>
> In most cases $HOME equals something like /home/username
>
> In our case the problem is that $HOME lies on a fileserver, and so the
> entries in /proc/mounts may look like this
>
> ltspfs /a/brugere/FILESERVER/raid/gondor/user/Drives/My_Floppy
> fuse rw,nosuid,nodev,user_id=8141,group_id=201 0 0
>
> so 'grep ${HOME}' fails, and this means that the ltspfs is not unmounted
> after the users has logged out.

 What is ${HOME} in this case ? shouldn't be
/a/brugere/FILESERVER/raid/gondor/user/ ?
 Why is not grep returning anything ?
>
> The fix is easy, replace
>
> grep ${HOME}
>
> with
>
> grep ${USER}
>
>

 ${USER} can identify more than one line, whereas ${HOME} should
uniquely identify just the entries pertaining to one particular user
(except when you homedirs are nested or shared). Think that you have
user 'john' and user 'johnson', if the first one logs out, all drivers
of the second one get unmonted.
  Can you give more details about your setup and expecially what is
the value of ${HOME} for an user.

-- 
mitu

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to