RE: LDAP not creating home directories

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



LDAP won't create the home directories for you.  However, the home
directory can be automatically created when a user first logs in.

For login services except SSH, add the pam_mkhomedir.so module to the
PAM configuration file for the service, /etc/pam.d/login,
for example:

      session required pam_mkhomedir.so skel=/etc/skel/ umask=0077

If a user authenticates and no home directory exists, the home directory
is created in /home. The umask=0077 parameter causes the directory
permission to be set to 700. The home directory is constructed from the
skeletal files found in the /etc/skel directory.

The other option is to create the home directory yourself.  This is what
I do because of our set up.

Ryan

-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx
[mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Stuart Sears
Sent: Sunday, October 16, 2005 7:59 AM
To: General Red Hat Linux discussion list
Subject: Re: LDAP not creating home directories


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Allen Chen enlightened us with the following gems on 14/10/05 18:46:
> Geetha Thanu wrote:
> 
>> Hello Gurus,
>>
>> LDAP server and clients are installed and using ldif
>> file  i am able to create a user successfully.
>>
>> But the home directory is not being created.
>>
>> So please guide me what i should do and what
>> configuration chnages has to be done if i want the
>> LDAP to create home directory automatically
>>
>> thanks Geetha
>>
>>
>>        
>> __________________________________________________________ Yahoo! 
>> India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com
>>
>>  
>>
> Could u post smb.conf file ?
> 
um... why?
smb.conf is the samba configuration file and has little (or nothing)  to
do with LDAP I would ask...
1) do the home directories already exist on a network device, so that
you only need them mounted locally? autofs can be set up to use LDAP as
well - so that would enable those.
2) if not, do you need to create a *local* directory whenever a user
logs in? look in  /usr/share/doc/pam-0* for the pam_mkhomedir module,
which can do this for you.

Regards

Stuart
- --
Stuart Sears RHCE RHCX
DPRINTK("doing direct send\n"); /* @@@ well, this doesn't work anyway */
        linux-2.6.6/drivers/atm/eni.c
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFDUkB2amPtx1brPQ4RAuQxAJ90dVLsZ2Gi0NIkJVaUBitfMsStcgCdE+C2
cqKLFCYW+Uk/LqeAD7tiyBM=
=ya4u
-----END PGP SIGNATURE-----

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux