useradd to create home directory?

Rob Crittenden rcritten at redhat.com
Fri May 2 01:35:31 UTC 2008


JerryWilliams wrote:
> I am looking for a way to create the home directory and populate it with 
> the shell profiles.
> 
> Normally I would use useradd, but it breaks when you use NIS or LDAP or 
> winbind.
> 
> It would be nice if useradd had an option that would say yes I know this 
> account exits in LDAP, just make the home directory and fill it with the 
> normal stuff and don’t put anything in /etc/passwd or /etc/shadow.
> 
>  
> 
> I guess I am asking for an enhancement to useradd.
> 
> Is there a better way to do this?

You might want to investigate pam_mkhomedir.

Or setup an NFS filer and look into automount.

rob

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3245 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20080501/7ed65fcd/attachment.bin>


More information about the fedora-devel-list mailing list