Senhor
https://help.ubuntu.com/community/SettingUpNISHowTo
Login to Edit Ubuntu Documentation > Community Documentation > SettingUpNISHowTo
SettingUpNISHowTo
Needs Expansion: This article is incomplete, and needs to be expanded. More info... This needs to be written. It needs to be *easy* link: http://tldp.org/HOWTO/NIS-HOWTO/index.html See also the HOWTO in the package. My attempt at satisfying the above:
NIS Server Config
Matthew Caron Note: This assumes your server and clients have static IP addresses. NIS with dynamic IP addresses present a serious security hazard. See the "Security" section, below, for a discussion of security problems inherent with NIS and how to avoid them. 1. (Warty only) Add any client name and IP addresses to /etc/hosts. The server's IP should already be here. I do not mean 127.0.0.1, I mean the real IP available to the world. This ensures that NIS will still work even if DNS goes down. You could rely on DNS if you wanted, it's up to you. 2. Add the following line to hosts.allow:
Where the "list of IP addresses" string is, you need to make a list of IP addresses that consists of the server and all clients. These have to be IP addresses because of a limitation in portmap (it doesn't like hostnames). 3. Install NIS:
You will be asked for the name of your NIS domain. This can be anything; you're naming it. It just has to be the same domain for the server and all clients. Also note that if you don't yet have an NIS server set up, your initial install will wait about a minute before timing out while trying to bind. 4. Edit /etc/default/portmap and comment out the ARGS="-i 127.0.0.1" line 5. Edit /etc/default/nis and set the NISSERVER line to NISSERVER = master 6. Edit /etc/yp.conf and add a server line of the form:
where is the name of your domain (entered when you installed nis) and is the name of the server you're setting all this up on. (This lives in /etc/defaultdomain