On Mon, Sep 11, 2006 at 05:09:47PM +0200, Lars Madsen wrote:
> Scott Balneaves :
> 
> > On Mon, Sep 11, 2006 at 03:50:26PM +0200, Lars Madsen 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.
> >
> > It's not a problem.  It's a difference between the way that most normal
> > installations are, and the way YOU are setting up your system.
> 
> the how /home/user then normally automounted from a fileserver? Instead of 
> symlinking /home/user to a mountpoint?

$HOME should, normally, point to a REAL directory, not a symlink.  If
your home directory on a fileserver is /argle/bargle/foo/user, and you
mount it on a local machine like /some/mountpoint/argle/bargle/foo/user,
and symlink to /home/user, this is exactly the sort of things that will
crop up: $HOME isn't REALLY your home.

There's a couple of ways to handle this:

1) Modify things a bit on your home dir:

/argle/bargle/foo/home/user

Then, export /argle/bargle/foo/home

Then, when you mount, simply mount server:/argle/bargle/foo/home /home

Another way is to set up some kind of automount, create the /home/user
dirs, and mount individual home dirs via automount, or equivalent.

Either way, having $HOME be a symlink to somewhere else will, as in this
case, come back and bite you.

And, as someone else pointed out, just searching $USER can sometimes not
be uniqe enough.  But, more importantly, it's simply an issue of
consistency: if your mount $HOME/somemount, that's what you should look
for.  Otherwise, you might introduce a race, or some other kind of
security bugaboo.

Cheers,

Scott

-- 
Scott L. Balneaves | "Looking beyond the embers of bridges glowing behind us
Systems Department |  To a glimpse of how green it was on the other side..."
Legal Aid Manitoba |    -- Pink Floyd "High Hopes"

-------------------------------------------------------------------------
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