LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 03-10-2006, 02:06 AM   #1
p_test
Member
 
Registered: Aug 2004
Location: Jaipur(Rajasthan), INDIA
Posts: 35

Rep: Reputation: 15
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...
 
Old 03-11-2006, 05:17 AM   #2
PDock
Member
 
Registered: Aug 2004
Distribution: Slack10 & curr. tried numerous
Posts: 189

Rep: Reputation: 36
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
 
Old 03-11-2006, 10:28 AM   #3
p_test
Member
 
Registered: Aug 2004
Location: Jaipur(Rajasthan), INDIA
Posts: 35

Original Poster
Rep: Reputation: 15
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....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to setup quota on user dir in nis server tulip4heaven Linux - Networking 1 09-14-2005 05:22 AM
NIS home dir problm mgokulagiridara Linux - Enterprise 1 02-28-2005 07:44 AM
howto make a dir shared that is not in my home dir Schmurff Linux - Newbie 2 06-19-2004 07:54 PM
nis client login - user home dir not fnd synfield Linux - Networking 0 03-27-2003 03:51 AM
can vfat mounted dir be case sensitive? oldbee Linux - Software 7 01-08-2002 02:12 PM


All times are GMT -5. The time now is 06:28 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration