Re: Difference between NIS and NFS
From: Reply-Via-Newsgroup Thanks (newsgroup_at_fiproject-com.com)
Date: Tue, 25 May 2004 11:28:58 -0700
> What is the difference between NIS and NFS?
> I have 3 systems with me.
> a. P4 with 80GB HDD and RH9.0
> b. P4 20 GB with RH9.0
> c. P3 20GB with RH8.0
> I would like to make "a" as server, so that all the files will be
> stored on it.
> users folders will be on "a" as /home/user1, /home/user2 etc...
> When I login on either "b" or "c" I want to direclty login to "a".
> That is I want to create usernames and passwords on "a" only and be
> able to access them over "b" or "c". And for logon, a graphical
> interface is needed.
> And the home directories need to be automounted from any systems over
> the LAN and not just "b" or "c"
> As far as I know, NFS is needed to mount /home/user1 of "a" over the
> network and NIS is needed to verify the username and password stored
> for a user on "a" when I login from "a", "b" or "c".
> Thanks and Regards,
Your last paragraph is true - NIS can be used to keep a single file
available across muitiple systems - good examples would be /etc/passwd,
/etc/shadow and /etc/group though you are no limited to these.
NFS is used to mount a filesystem across a network - You could use
autofs to automatically mount a users filesystem when they log on,
irrespective on where the filesystem is (locally or remote/on another
I have an old NFS/NIS book by O'Reilly that is at home and from memory,
its excellent... Have you got any literature on it at all? I couldn't
detail the full steps on how to implement such a system now (it would
take too long) but there are important points for you to consider in
order to successfully manage such an implementation - For example, if a
file system on 'a' is mounted on server 'b', and server 'a' becomes
unavailable, server 'b' can end up in a state of limbo (and use alot of
resources) searched and retrying to mount the filesystem from 'a'.
There are also security and other performance concerns which at very
least you should be aware off... Its a long time since I've implemented
NIS/NFS (five years or more) but I have to admit, when I did, and when
its done properly, it works great - but when done badly... well... I
suppose, like anything else really eh?
I hope something above helps you,