Re: Difference between NIS and NFS

From: Reply-Via-Newsgroup Thanks (newsgroup_at_fiproject-com.com)
Date: 05/25/04


Date: Tue, 25 May 2004 11:28:58 -0700

kiran wrote:
> 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,
> Ashesh

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
server).

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,

laters
randelld



Relevant Pages

  • NFS has a problem
    ... filesystem will get stuck in state D the next time they try to access ... Hmmm, the servers are running Debian stable, and have been providing NFS ... I stop and restart the nfs services on the server side, but client ...
    (comp.os.linux.misc)
  • Re: NFS has a problem
    ... that filesystem barfs, all the processes on N that were using that filesystem will get stuck in state D the next time they try to access that filesystem. ... Hmmm, the servers are running Debian stable, and have been providing NFS services for several years now, and have been working fine with Debian stable clients. ... The Gentoo machine is a new development on the network, with the NFS client becoming operational at the beginning of this year. ... I stop and restart the nfs services on the server side, but client processes remain in state D on the Gentoo machine. ...
    (comp.os.linux.misc)
  • Re: incomplete passwd file
    ... One of our servers (RHAS 4, NIS ... We booted from CD copying a backup over the passwd file. ... The server lost ... connection to NIS and NFS before this problem appeared (NIS and NFS ...
    (Fedora)
  • Re: gets, fconfigure question
    ... were all served out of a single central NFS server which hadn't had ... and home directories were on a different NFS server) but then the ... If the laptop is ... we require a filesystem which is a replicated ...
    (comp.lang.tcl)
  • Re: Does there exist something like a networked filestorage
    ... number of machines. ... They might use NIS, NIS+, LDAP or something else for name ... BTW, you can have a "default" server for all user homes, and then specify ... etc.) to reside on specific other NFS servers. ...
    (comp.os.linux.networking)