NIS Server -Users not getting /home directory
hi,
What i have done till now ! Using RHEL 5 I have installed ypserv on the server After that #vim /etc/sysconfig/Network NISDOMAIN=nis after that /usr/lib/yp/ypinit -m then adding users useraddd -g users nis1 passwd nis1 then make -C /var/yp/ now everthing is working fine i am able to connect to the main NIS server from the client machine even able to login to the system. but no directory is for the users. instead sh_bash$ appears please help ! |
NIS can't automatically create a home directory for the NIS users. You need to either:
1. Create home directories on the NIS clients for your NIS users (hard to maintain, really bad for various reasons) or 2. Use some sort of shared home directory, the most common approach is to use an NFS export + automount. |
Follow up on NFS + automount. Instructions assume RHEL, fedora, or some other Red Hat based distro for all machines.
First, you need a server that will act as your 'home directory' server. This can be the same as the NIS server, or you might want a dedicated central storage server. On this machine, make sure you have nfs installed and running: service nfs start chkconfig nfs on Edit /etc/exports, and export the home directory: /home *(rw,sync) You may want to replace the * with just the network that should have access, such as: /home 192.168.1.0/24(rw,sync) Run 'exportfs -r' to export the home directory. Now, on the NIS client, set up automount to handle /home. In /etc/auto.master: /home /etc/auto.home And create /etc/auto.home with these contents: * -rw,sync hostname.of.nfs.server:/home/& Then restart autofs, and make sure it starts at boot: service autofs restart chkconfig autofs on hope this helps! |
yes it indeed helped me solve my problem
I was having the same problem Thanks a lot! |
All times are GMT -5. The time now is 05:14 PM. |