LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 07-16-2008, 11:42 AM   #1
bunty82
LQ Newbie
 
Registered: Apr 2008
Location: New Delhi, India
Distribution: RHEL 5
Posts: 13

Rep: Reputation: 0
Post 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 !
 
Old 07-16-2008, 03:00 PM   #2
jpwigan
LQ Newbie
 
Registered: Jun 2008
Distribution: RHEL, Fedora, Gentoo, Slackware
Posts: 27

Rep: Reputation: 15
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.
 
Old 07-16-2008, 03:06 PM   #3
jpwigan
LQ Newbie
 
Registered: Jun 2008
Distribution: RHEL, Fedora, Gentoo, Slackware
Posts: 27

Rep: Reputation: 15
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!
 
  


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
NIS/NFS can't find home directory extendedping Linux - Software 4 08-29-2007 12:33 PM
how to import NIS users into my Directory Server capricorn80 Solaris / OpenSolaris 3 09-12-2006 02:41 PM
nis home directory automounting ravi_foru Linux - Networking 2 03-06-2006 09:12 AM
exporting home directory with NFS and NIS cevjr Linux - Networking 2 12-23-2004 10:11 AM
NIS & same home dir's for users collen Linux - Networking 1 12-05-2003 10:44 PM


All times are GMT -5. The time now is 07:25 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