pam_mkhomedir Fails to Create Home Directory When User Logs in Using SSH

Solution Verified - Updated -

Issue

When a user logs in to a machine for the first time via ssh, pam_mkhomedir may be used to automatically create the user's home directory. If the user's home directory is not automatically created when logging in via ssh there may be a couple different reasons, noted in the resolution section.

Environment

  • Red Hat Enterprise Linux 6
  • pam_mkhomedir.so

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content