In article <ddvdnl$7pa$(E-Mail Removed)>, bmgz <(E-Mail Removed)> wrote:
| Before commiting my clients to NIS, I just want to make something
| certain. In case of an emergency (ie. my server goes down.) I want
| clients to still be able to login.
|
| I take it NIS clients don't automatically cache the passwd/group files.
|
| I have ubuntu clients, so would the solution be adding a local
| user(admin) on each client with sudo writes. In an emergency I can login
| with the admin account and add the user/password to the local passwd
| file. Would this be the best solution? But then Ill have to remove the
| user/pass from the passwd file once the server is up again.
| I admit it seems a bit quirky.. surely there is a better option?
Many systems which support NIS also support a Name Service Cache
Daemon (nscd), which can provide a configurable time to live for
previously looked up passwd entries. The Linux nscd was written by
Thorsten Kukuk of SuSE, who wrote the Linux NIS suite, and Ulrich
Drepper, who wrote the GNU C library for Linux. I know Fedora and (I
expect) SuSE ships with nscd. Any Linux that supports NIS probably
does as well.
I'm not sure that nscd is intended to support normal operations in the
total absence of an NIS server, though. There's no guarantee that an
idle system would make sure to keep all passwd entries pulled into the
cache on any consistent basis. I think ncsd is rather more intended as
a performance optimization, instead.
Fortuantely, NIS was designed to be redundant. You can have one
master NIS server where you make your account changes, and several NIS
slave servers which will receive updates whenever your master NIS
server is updated.
So long as your NIS client system can reach any of your NIS servers,
you'll still be able to login and do everything else as normal.
See Thorsten Kukuk's NIS HOWTO at
http://www.tldp.org/HOWTO/NIS-HOWTO/
for details on how to set everything up. You can also see the
O'Reilly book 'Managing NFS and NIS, Second Edition', at
http://www.oreilly.com/catalog/nfs2/ for lots more details and advice
on setting up a redundantly server NIS network.
Take care, however, NIS is the furthest thing from secure networking.
When you run NIS, everyone on your network has the ability to access
the contents of your NIS passwd map, which means that they can try to
crack your password hashes. If you decide you really do need to use
NIS, be *very sure* that you use md5Crypt password hashing instead of
the old-school UNIX Crypt algorithm.
Good luck.
--
-------------------------------------------------------------------------------
Jonathan Abbey
(E-Mail Removed)
Applied Research Laboratories The University of Texas at Austin
GPG Key: 71767586 at keyserver pgp.mit.edu,
http://www.ganymeta.org/workkey.gpg