Networking Forums

Networking Forums > Computer Networking > Linux Networking > problem logging in using NIS + automounted home directories.

Reply
Thread Tools Display Modes

problem logging in using NIS + automounted home directories.

 
 
Darren
Guest
Posts: n/a

 
      11-20-2007, 07:39 PM
Hi I'm not really sure where to post this question - please direct me
to the correct group if this is not it, but the problem appears to
involve some interaction between NFS, NIS and NAS software.

I am running an open source NAS called openfiler, but I am not sure
the problem lies with that software although I have a query pending on
that list (but no answer). The problem is occurring in a setup that
involves NIS and automounting home directories from the NAS.

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/users/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/users/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/users/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.

My setup is that the NAS is running on computer A. I am running an NIS
master on computer B and there are 2 other client computers C and D.
The problem occurs whether I am on the master (computer B) or on
computers C or D (users do not login to the NAS)

The only messages I see in /var/log/messages of any relevance are, for
example:
Nov 18 12:50:24 chinook rpc.idmapd[2148]: nss_getpwnam: name '99' does
not map into domain 'localdomain'
Nov 18 12:51:05 chinook rpc.idmapd[2148]: nss_getpwnam: name '501'
does not map into domain 'localdomain'
Nov 18 12:53:05 chinook rpc.idmapd[2148]: nss_getpwnam: name '0' does
not map into domain 'localdomain'

If I turn on automount with the -vvv flag I just see authenticated
mount and unmount requests, no rejected requests or other problems
with the mounts.

I am automounting using nfs4 but the same problem happened using nfs
(presumably nfs 3)

Also the mounted disks are all exported via a private network
192.168.1.x

the hosts file looks like this
127.0.0.1 localhost.localdomain localhost
165.130.x.xx zephyr.neuro.university.edu zephyr
192.168.1.xx zephyr.nbmg
etc. for the other computers

the resolv.conf file looks like this (note I am not running a local
dns)
search localdomain
nameserver 165.124.xx.xx
nameserver 129.105.xx.xxx

the nsswitch file references files, nis for all entries


/etc/exports looks like this:
/export
192.168.1.0/255.255.255.0(rw,insecure,no_subtree_check,no_root _squash,sync,fsid=0)
/export/home
192.168.1.0/255.255.255.0(rw,insecure,no_subtree_check,no_root _squash,sync,nohide)

On the NAS I have bound /mnt/vg01/home to /export/home
mount --bind /mnt/vg01/home /export/home

/etc/auto.home looks like this
* -
fstype=nfs4,rw,rsize=32768,wsize=32768,intr,tcp,ti meo=600,retrans=2
zephyr.nbmg:/home/&


I've seen a few similar messages: for example
http://www.linuxquestions.org/questi...ailing-572046/
but there was no reply

http://lists.samba.org/archive/samba...er/002400.html
but I am not mounting the shares securely

anyway I am stuck and would really like to be able to resolve this
problem
darren
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Network shares for home directories Andrew E Chapman Windows Networking 10 08-26-2008 07:18 PM
Which to use - User Home directories or Redirected My Documents ? Stuart Windows Networking 6 03-27-2007 12:38 PM
home directories roshak31 Windows Networking 2 11-06-2006 01:34 AM
nfs root problem - empty directories Elad Ben-Israel Linux Networking 0 11-11-2004 05:41 PM
proftpd: setting home directories? D. Alvarado Linux Networking 1 07-18-2004 08:53 AM



1 2 3 4 5 6 7 8 9 10 11