> 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

Ok, I'll try that.  Thanks for the info.

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

I actually already have this setup, but I don't want it in /home (thus the
/rhome).  Everyone's password points them to a directory in /home, and I
want to keep it that way.  I want to do something like the pam_mkhomedir.so,
but instead of creating the home directory, I want it to create a symlink to
/rhome/user in /home/user.  Do I need to write a pam module for this?

Thanks,

Forrest

> 
> Cheers,
> 
> Nalin



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

Reply via email to