Marius, You actually want PAM to be server-side, because your home directories need to be created server-side. I don't have code handy, but pam_mount should mount things in order as they appear in its configuration file. So, you should be able to say:
mount a tmpfs on /tmp/$USER-tmpfs mount a unionfs of /tmp/$USER-tmpfs=rw:/home/golden=ro on /home/$USER (and have pam-mount create mountpoints) and tell pam-script to run before pam-mount and remove /tmp/$USER-tmpfs OR do it all in pam-script. -Gadi On Tue, 2009-05-05 at 00:38 +0200, Marius Flage wrote: > Gideon Romm wrote: > > > Then, the other piece is to make a temporary homedir for each user > > account that logs in that is based upon your golden one. Well, that can > > be done with pam_mount and unionfs. the tmpfs overlay can either be > > something created on the fly, or it can be something static that is > > flushed upon login by a script. > > Yeah, that's exactly what I'm doing right now and what I want to reuse > for the thin clients as well, but how? All pam stuff happens on the > server side, so I need a paradigm for determining which temporary > directory should be used for each machine (maybe based on MAC address?). > > Do you have some example code that would illustrate this? > > - Marius > > ------------------------------------------------------------------------------ > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > _____________________________________________________________________ > 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 -- -------------------------------------------------------- Gideon Romm | Proud LTSP Developer l...@symbio-technologies.com Support LTSP! Buy your hardware at: www.DisklessWorkstations.com www.DisklessThinClients.com (use coupon code: LTSP5P for 5% off thin clients from DisklessThinClients.com) ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _____________________________________________________________________ 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