Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 10-01-2008, 07:02 PM   #1
LQ Newbie
Registered: Jul 2008
Posts: 13

Rep: Reputation: 0
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
/home /etc/auto.home

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?
Old 10-15-2008, 09:16 PM   #2
LQ Newbie
Registered: Jul 2007
Distribution: rhel
Posts: 1

Rep: Reputation: 0
Ran into same problem with RHEL 5.1. Turns out there is a nfs bug that was not patched or something in the released kernel and/or autofs. You probably need to update your client or upgrade to a new release that includes the fixes. I know the fixes are included in RHEL 5.2. You didn't mention your release and version, good info to include in future posts.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 02:37 PM
Mystery directories in automounted directory flgal3 Linux - Enterprise 0 02-24-2006 08:53 AM
browseable home directories kenji1903 Linux - Networking 18 07-30-2004 04:10 AM
Home directories are full homerson Linux - General 1 05-27-2004 10:24 PM
problem in mounting /home when logging through NIS vaibhava303 Linux - Networking 1 09-17-2003 09:07 AM

All times are GMT -5. The time now is 11:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration