The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Do You Work From Home? Neo What's on Your Mind? 18 07-20-2007 04:56 AM
user home directory problem BangYourWallnut UNIX for Dummies Questions & Answers 1 08-18-2005 02:59 PM
home directory problem finster SUN Solaris 1 09-16-2003 12:47 AM
Configuration for a home LAN cbkihong IP Networking 1 11-03-2002 02:29 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-18-2007
Registered User
 

Join Date: Oct 2007
Posts: 1
Stumble this Post!
Problem: Automounting Home directory for nis & nfs configuration doesn't work

Hi all,
First of all, i am so sorry about my bad level in English writing.
I have some problem in linux and i hope the experts of this forum to help me if they have enough time to reply to me.

I have a scenario of configuring NIS and NFS in Redhat Linux environment such that user can login from any machine in the network and after he login, the home directory is supoosed to be mounted from the server using the automounting .
I configured the NFS server and NIS server and i checked everything and it is supposed everything is OK (all the related daemons are running). But the problem started when i start configuring the client. I started by configuring the NFS client because my goal is to mount the home directory of the user from the server once he login to the client machine. After i configured the NFS, i configured the NIS client. as i could see, NIS works well, because i can get the passwd file from the NIS server by running the command 'ypcat passwd' in the NIS client. But the problem started when i tried to log in in the client machine. The error which appeared showed that i can't login because the home directory is not found. If i login as root, no error appear and i can login. But when i try to login using the other accounts which created in the NIS server, i can't login because that error appears.

I followed the next procedure to configure the two machines:server and client:
1- in the server:
- i add "/home *(rw,sync)" to the file /etc/exports
- i run the command exportfs -a
- i run and chkconfug: nfslock, nfs and portmap

2- in the client:
- i run and chkconfig: nfslock, netfs, and portmap
- i duplicate the home directory, rename the new copy to home.old and delete all the contents of the original home
- i mounted the home of the server to the home directory in the client using the mount command and it worked. then i unmount it using umount.
- i added "/home /etc/auto.home --timeout 600" to etc/auto.master file
- i created the file etc/auto.home and i add this line to it "* -fstype=nfs,soft,intr,rsize=8192,wsize=8192,nosuid,tcp /
<server ip address>:/home:&"
- i run and chkconfig autofs

3- in the server:
- i edit /etc/sysconfig/network by adding the line "NISDOMAIN="NIS-SCHOOL-NETWORK""
- i edit /etc/yp.conf by adding the line "ypserver 127.0.0.1"
- i run and chkconfig: portmat, yppasswdd, ypserv
- i run /usr/lib/yp/ypinit -m
- i run and chkconfig ypbind and ypxfrd
- i added a new user in the server and set his password

4- in the client
- i run authconfig and specify the name of domain and the server ip address
- i run and chkconfig portmap, ypbind
- i verifed the name resolution of both client and server
- i tested nis access to nis server by runing ypcat in the client to get passwd file
- i can ssh from the server to the client by using one of the account created in the nis server.

after this step: when i tried to login from the client using one of the nis server accounts, the next error appears: home directory not found and i can't login. when i login using the root account i can login.


So, pleeeeeeeeeeeeeeeeeeeeeeeeeeeeeas help me in this problem
Thanks in advance
Reply With Quote
Google The UNIX and Linux Forums
Forum Sponsor
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:35 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0