On Thu, Oct 25, 2001 at 11:22:20AM -0700, Taylor, ForrestX wrote:
> I am using NIS to authenticate, and I want to create a home
> directory/symlink the first time that someone logs in to the machine.  I
> only set up one home directory in /home (/home/user1), but when user2 logs
> in to that machine, there is no /home directory.  Is there any way to get
> the login script to check for the existence of a /home directory, and if it
> doesn't exist, create one or create a symlink to an automounted home
> directory (i.e. /rhome/user2)?

Automatic creation of home directories is something pam_mkhomedir was
written for.  Add it to the session section of /etc/pam.d/login or the
equivalent file:
session         optional        /lib/security/pam_mkhomedir.so

If you want to symlink to an automounted directory, the only solution
that comes to mind is... to use the automounter.  It should be possible
with a wildcard map (see autofs(5) for examples) that looks something
like this:
*       :/rhome/&

Cheers,

Nalin



_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list

Reply via email to