Requesting help to automatically create home dir on login

I know we would not normally do this. However, I would like to have user's home directory created when they log in the first time.
I have searched the forums and have not found any help yet.
Scenario - environment uses NIS for auth and usually NFS mount HOME.
However, I have a pilot environment on a non-routed subnet and am using a NIS slave for auth.
The server will not be used for long, but I have quite a few users who will be logging in. I would like to either:

  • set /tmp as home for all users (not via NIS)
  • automatically create the user home upon login (preferred)

Any tips, suggestions would be greatly appreciated.

Thanks in advance

google pam_mkhomedir. You'll find links for Linux & Solaris.

In case you have something other than pam - maybe autodir will do...

Autodir HOWTO

I doubt it could. PAM is a required component of Solaris authentication so pam_mkhomedir will work (assumed you manage to compile/install it properly) while Autodir won't being Gnu/Linux specific.

sandholm

I did find this prior to my posting and was only finding linux specific details. I have refined my search to solaris pam_mkhomedir and am finding what I need. Will update the post accordingly in the next day.
Thanks.