NIS : Home dir not mounted
Hi
I have configured an NIS server The following RPMs are installed : portmap, ypserv, make Then i followed the followed the followinfg process: #vi /var/yp/Makefile edited the line all: passwd group hosts netid \ saved & exit I created a user #useradd -d /rhome/myhome nis1 #passwd nis1 then I ran the following commands #service portmap restart #service ypserv restart #service yppasswdd restart #/usr/lib/yp/ypinit -m All the commands were executed successfully ON THE CLIENT I executed the following commands The following rpms are installed portmap, ypbind, yp-tools, authconfig, authconfig-gtk #authconfig I selected Under User Info Under Authentication * Use NIS *Use MD5 Passwords *Use Shadow Passwords Then I entered the Domain and Server on the next page.. The after clicking OK it was able to connect to NIS server. ypwhich worked fine After the above steps were done I was able to log in with the remote user on the server.. Then to mount the home directory of the user nis1 I exported the home directory ON THE SERVER #vi /etc/exports /rhome/myhome 192.168.0.0/255.255.255.0(rw,sync) save & exit #service nfs restart Then ON THE CLIENT #vi /etc/auto.master /rhome /etc/auto.home save & exit #vi /etc/auto.home nis1 -rw,soft,intr 192.168.0.15:/rhome/myhome save & exit #service autofs start After this I tried logging again with the remote user it says No Directory /rhome/myhome! login was successful but the home directory was not mounted...Although client knows that the home dir is /rhome/myhome on the server showmount on client shows the exported directories on the server I m trying this for the last 2 days...but still there... Help...May be I m missing some of the options... |
Did you manually create the home directory on the server? Without the -m switch useradd does NOT create the new directory.
Don't have autofs on this box so can't check things but from memory looks like you are trying to mount 192.168.0.15:/rhome/myhome to /rhome on the client. Does /rhome exist on client? Aside: to each his own but I use /home/users/[me me1 me2] on the server and then create /home/users on each client, letting autofs mount me or me1... under that point. Keep trucking ppd |
Absolutely correct....I have /rhome dir on my client. it has a subdir myhome. I discovered it after I posted the issue.... But I don know how & when was it created because I never created it...
Now I have 2 users on the server- nis1 & nis2 .. nis1 has the home dir as /rhome/myhome and nis2 has /rhome/nis2... now nis1 is able to log in with its home dir mounted but nis2 is not able to mount the home dir although it is able to log in... I have done this many times before... but this scenario never occurred to me... The root user on client can enter /rhome but not /myhome... it shows "permission denied"... I still have no clue how to proceed.... |
All times are GMT -5. The time now is 11:31 PM. |