[K12OSN] OT PAM questions
andyr at wizzy.com
Sat Jun 26 07:44:38 UTC 2004
On Fri, 25 Jun 2004, Les Mikesell wrote:
> On Fri, 2004-06-25 at 13:07, Doug Gough wrote:
> > I'm hoping that someone on this list can help me. I need to get my Linux
> > workstations to automatically create a user when they authenticate
> > against NIS. Does that make any sense? Or do I have to create the user
> > manually on the workstation?
> The user account and related groups should automatically exist
> if NIS is configured. However you still need to provide a
> home directory. You can either NFS mount /home from the
> main server where the account exists or do something with
> the automounter to do each one on demand.
I use LDAP, not NIS.
I add the following to /etc/pam.d/gdm :-
session required /lib/security/pam_mkhomedir.so skel=/etc/skel/ umask=077
Then I only need to create the LDAP entry, and when they log in their
home directory is created from /etc/skel.
More information about the K12OSN