LDAP without home

Stefan Kuhne stefan.kuhne at gmx.net
Thu Oct 22 12:13:37 UTC 2009


Jon Miller schrieb:
> On Thu, Oct 22, 2009 at 8:00 AM, Stefan Kuhne <stefan.kuhne at gmx.net> wrote:
>> Jon Miller schrieb:

Hello,

>>> Do you have some requirement that you can _not_ have a home directory
>>> for your users? If not, you can simply use the pam_mkhomedir module
>>> which, as the name implies, will create your home directory upon first
>>> login.
>>>
>> I've modify mkhomedir.
>> But on logon i'am on /, because of there is noch home entry.
>>
>> normal:
>> root:x:0:0:root:/root:/bin/bash
>>
>> my output:
>> root:x:0:0:root::/bin/bash

> Sorry, I misunderstood the problem. Looks like it's not really a pam
> issue but rather your root account's home directory isn't specified
> correctly. Typically root's home dir is just "/root". Assuming you
> have such a directory, you should be able to fix root's account via
> the command "/usr/sbin/usermod -d /root root".
> 
it is by all users in LDAP, root was an example line.
I will modify the data when it is catched from LDAP.
I think in ldap module i should search but this code is complex.

Regards,
Stefan Kuhne

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 551 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/pam-list/attachments/20091022/0cbbff98/attachment.sig>


More information about the Pam-list mailing list