a little shell problem

Michael Knee plug-discuss@lists.plug.phoenix.az.us
Fri, 11 Oct 2002 22:58:34 -0700


If you change the root of your home directories to to something other than
"/home" you change one variable -- HOME -- and you're back in business.

If you have multiple roots (not recommended) you would need multiple
structures.

If you have home directories scattered all over the place you're soon going
to wind up with an unmaintainable mess.

Mike


----- Original Message -----
From: "der.hans" <PLUGd@LuftHans.com>
To: <plug-discuss@lists.plug.phoenix.az.us>
Sent: Friday, October 11, 2002 6:39 PM
Subject: Re: a little shell problem


> Am 11. Oct, 2002 schwätzte Michael Knee so:
>
> > How about
> >
> > HOME="/home"
> > CLIENTS="$HOME/joe/foo
> >           $HOME/blow/foo
> >           $HOME/schmo/blah"
>
> That doesn't work if someone ever ends up not being in /home.
>
> Grepping the users out of /etc/passwd would work, but it'd be a lot of
> overhead to grep it each time. Reading it into an array, then yanking them
> out as you go might work, but if you hit something with 45000+ accounts (
> e.g. ASU ), then you'll still have a lot of overhead.
>
> ciao,
>
> der.hans
> --
> #  https://www.LuftHans.com/    http://www.TOLISGroup.com/
> #  Hope has two beautiful daughters: Anger and Courage. Anger at the way
> #  things are, and Courage to struggle to create things as they should be.
> #  -- St. Augustine
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change  you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>