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