[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Importing users and their home-directories via NIS from a server



ok. then i understand you have a YP server already running, which is good.
now, you should create in the source dir of the YP a file called "passwd" (for discovering what's your source dir, you should look at the Makefile, i think it should be /var/yp/Makefile). This should be your passwords file. If you also use shadow then you should put the file too, but it losses it's security, unless you use NIS+ (which i never worked with, and it's harder to configure).
You should edit your YP Makefile to compile the passwd map. Look at it, and try to understand it. (i can't explain it here, because i don't have YP at home, so i don't have refernces to look at)
Now to make you home dirs be shared, first share them with nfs ofcourse.
Now, you should do one of the following things:
or update /etc/vfstab manually to mount /home
or use the automounter (look at /etc/init.d/autofs for seeing how it works)
i would recommend the first options if you never worked with automounter.

Now, to make the clients be aware of the passwords which is supplied from the YP server, first you have to bind the to the YPserver (ofcourse). Now, edit the file "/etc/nsswitch.conf" here, in the line about "passwd" write it like this:

passwd  nis files

I hope this will help,
Noam




At 14:16 23/08/2001 +0300, Shlomi Fish wrote:
On Wed, 22 Aug 2001, Noam Meltzer wrote:

> in other words, you want your yp server to distribute maps for passwords
> and mounts, and share the home dirs with NFS, am I right?
>

Yes. Now, what should I do to achieve it?

Regards,

        Shlomi Fish

>
>
> At 14:05 22/08/2001 +0300, Shlomi Fish wrote:
>
> >We have a Solaris NIS server, and we wish to have several SPARC linux
> >workstations that will import its users and (assuming the user has logged
> >in) the user home-directory.
> >
> >We do not want to define the user on the local machine by means of
> >/etc/passwd and friends.
> >
> >How can this be done?
> >
> >Regards,
> >
> >         Shlomi Fish
> >
> >
> >
> >----------------------------------------------------------------------
> >Shlomi Fish        shlomif@t2.technion.ac.il
> >Home Page:         http://t2.technion.ac.il/~shlomif/
> >Home E-mail:       shlomif@techie.com
> >
> >A more experienced programmer does not make less bugs. He just realizes
> >what went wrong more quickly.
> >
> >
> >=================================================================
> >To unsubscribe, send mail to linux-il-request@linux.org.il with
> >the word "unsubscribe" in the message body, e.g., run the command
> >echo unsubscribe | mail linux-il-request@linux.org.il
>
> ---
> Noam Meltzer
> tsnoam@zahav.net.il
> ICQ: 4853872
>



----------------------------------------------------------------------
Shlomi Fish        shlomif@t2.technion.ac.il
Home Page:         http://t2.technion.ac.il/~shlomif/
Home E-mail:       shlomif@techie.com

A more experienced programmer does not make less bugs. He just realizes
what went wrong more quickly.

---
Noam Meltzer
tsnoam@zahav.net.il
ICQ: 4853872