"Cannot change directory to" home directory error on new RHEL host when using NIS and autofs to mount nfs home directories.

Solution Verified - Updated -

Issue

  • Unable to access user home directory with NIS and automount
  • I get the following error when I log into my newly installed Red Hat Enterprise Linux host:
    su: warning: cannot change directory to /userhome/user123: No such file or directory
    

Environment

  • Red Hat Enterprise Linux 5
  • NIS is used to manage users
  • Autofs is used to auto-mount home directories
  • NFS home directories are exported from Netapp NAS filer.

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