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 Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

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 08:56 AM
user home directory problem BangYourWallnut UNIX for Dummies Questions & Answers 1 08-18-2005 06:59 PM
home directory problem finster SUN Solaris 1 09-16-2003 04:47 AM
Configuration for a home LAN cbkihong IP Networking 1 11-03-2002 06:29 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-18-2007
pioneer pioneer is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 1
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On




All times are GMT -4. The time now is 10:53 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0