"Cannot change directory to" home directory error on new RHEL host when using NIS and autofs to mount nfs home directories.
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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
