problem logging in with automounted home directories
The problem is that all first attempts at logging in via the console
as a user I get back this message:
su: warning: cannot change directory to /home/username: No such
file or directory. The login is then rejected. BUT, if I try to login
a second later everything proceeds just fine. Therefore I don't think
this is a permissions issue because I can login on the second attempt.
Also subsequent logins work fine as long as I don't let the
automounted home directory expire and get unmounted. (So by first
attempt I mean trying to login after the mount has expired.)
If I am already logged in as root and type su - username I see the
message: su: warning: cannot change directory to /home/username:
No such file or directory. However, I am then logged in as that
username but in whatever directory, root was last in when the command
was issued. If I then exit and immediately retype su - username
everything proceeds just fine.
Logging in as root from the console or typing su - root works fine. If
I type cd /home/username I cannot detect even a moments'
hesitation and I am in the directory.
ls is also very quick. The problem just seems to be some sort of
instantaneous timeout when trying to login, but the attempt does mount
the home directory and then retrying the login just works fine.
The NAS is where the home directories are located. I am using /etc/auto.master with the following line
and /etc/auto.home with the following line
* -rw,hard,intr,nosuid nas:/usershome/&
Does anyone have any insight to why I am having the problem described above?